You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently godoc does not list the base type of type, for example:
http://golang.org/pkg/encoding/json/#Decoder
type Decoder
func NewDecoder(r io.Reader) *Decoder
func (dec *Decoder) Buffered() io.Reader
type Marshaler
type MarshalerError
func (e *MarshalerError) Error() string
It would be really nice if this were listed as:
type Decoder struct
func NewDecoder(r io.Reader) *Decoder
func (dec *Decoder) Buffered() io.Reader
type Marshaler interface
type MarshalerError struct
func (e *MarshalerError) Error() string
It's often hard to tell if a name represents an interface or a methodless non-interface
(for example, here Decoder has the -er suffix typical of interfaces). Additionally, many
times the use of a type is much clearer if it is easily seen that it has an int as the
underlying representation (or whatever).
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: