Documentation
¶
Index ¶
- Variables
- func ConstFromValueSpec(spec *ast.ValueSpec) (*reader.Constant, error)
- func ParseInterface(spec *ast.TypeSpec) (*reader.Interface, error)
- func ParseStruct(spec *ast.TypeSpec) (*reader.Interface, error)
- func ParseTypeAlias(spec *ast.TypeSpec) *reader.TypeAlias
- func TypeFromExpr(t ast.Expr) *reader.Type
- func TypeFromName(n string) *reader.Type
- func TypeFromToken(t token.Token) *reader.Type
- type Import
- type Reader
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotExported = errors.New("type is not exported")
)
Functions ¶
func ParseInterface ¶
Parse Go interface from ast.TypeSpec
Types ¶
type Import ¶
type Import struct { // Package path // // This might not be populated immediately // since we need access to the file imports to find the path Package string `json:"package"` // Name of import // // Might be alias or real package name Name string `json:"alias"` }
Package import options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.