T1 declared before its methods.
type T1 struct {
// contains filtered or unexported fields
}
Conflict between embedded field and method name, with the embedded field being a basic type.
type T1b struct {
// contains filtered or unexported fields
}
type T1c struct { time.Time }
func (T1c) Time() int
type T2 struct {
// contains filtered or unexported fields
}
type T3 struct {
// contains filtered or unexported fields
}
Methods of non-struct type.
type T4 func()
Methods associated with an interface.
type T5 interface {
// contains filtered or unexported methods
}
type T6 struct {
// contains filtered or unexported fields
}
Receiver declarations are regular parameter lists; receiver types may use parentheses, and the list may have a trailing comma.
type T7 struct{}
Unsafe.Pointer is treated like a pointer when used as receiver type.
type UP unsafe.Pointer