Documentation ¶ Index ¶ type Field func ParseFields(astField *ast.Field) []Field type File func ParseFile(fileName string) (File, error) type Interface func ParseInterface(name string, interfaceType *ast.InterfaceType) Interface type Method func ParseMethod(method *ast.Field) Method Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Field ¶ type Field struct { Name string Type string } func ParseFields ¶ func ParseFields(astField *ast.Field) []Field type File ¶ type File struct { PackageName string Imports []string // TODO: This. Interfaces []Interface } func ParseFile ¶ func ParseFile(fileName string) (File, error) type Interface ¶ type Interface struct { Name string Methods []Method } func ParseInterface ¶ func ParseInterface(name string, interfaceType *ast.InterfaceType) Interface type Method ¶ type Method struct { Name string Inputs []Field Outputs []Field } func ParseMethod ¶ func ParseMethod(method *ast.Field) Method Source Files ¶ View all Source files Field.go File.go Interface.go Method.go Click to show internal directories. Click to hide internal directories.