3 ms·
In order to maintain compatibility with other interfaces, they have to return error in several places. Take bytes.Buffer, which return errors even when they ar
by morecoffee 9y ago
In order to maintain compatibility with other interfaces, they have to return error in several places. Take bytes.Buffer, which return errors even when they are impossible. Same with http.Cookie(). It promises it will only ever be http.ErrNoCookie, but that isn't going to make static analysis tools happy.