8 type customError struct {
11 func (p *customError) Error() string {
15 func getNilCustomError() *customError {
19 func TestWebSocketClient_basic(t *testing.T) {
20 err1 := getNilCustomError()
21 fmt.Println(err1 == nil) // ok is true
24 err2 = getNilCustomError()
25 fmt.Println(err2 == nil) // want `this comparison is never true`