Documentation ¶
Overview ¶
Package definfo is separate from gog so that its members can be imported without pulling in gog's other dependencies.
Index ¶
Constants ¶
View Source
const ( Package = "package" Field = "field" Func = "func" Method = "method" Var = "var" Type = "type" Interface = "interface" Const = "const" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DefInfo ¶
type DefInfo struct { // Exported is whether this def is exported. Exported bool `json:",omitempty"` // PkgScope is whether this def is in Go package scope. PkgScope bool `json:",omitempty"` // PkgName is the name (not import path) of the package containing this // def. PkgName string // Receiver is the receiver of this def (or the empty string if this // def is not a method). Receiver string `json:",omitempty"` // FieldOfStruct is the struct that this def is a field of (or the empty string if this // def is not a struct field). FieldOfStruct string `json:",omitempty"` // TypeString is a string describing this def's Go type. TypeString string // UnderlyingTypeString is the function or method signature, if this is a function or method. UnderlyingTypeString string `json:",omitempty"` // Kind is the kind of Go thing this def is: struct, interface, func, // package, etc. Kind string `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.