Documentation ¶
Index ¶
- func FormatCode(code string) ([]byte, error)
- func GetEmbedded(src []byte, dec interface{}) (embeds []string)
- func GetParameters(src []byte, fl *ast.FieldList) ([]string, bool)
- func GetReceiverTypeName(src []byte, fl interface{}) (string, *ast.FuncDecl)
- func GetStructName(src []byte, dec interface{}) string
- func MakeInterface(pkgName, ifaceName string, methods []string, imports []string) ([]byte, error)
- func ParseStruct(src []byte, copyDocs bool, oexs []string) (sdata map[string]*StructData)
- type Method
- type StringSlice
- type StructData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCode ¶
func GetEmbedded ¶
func GetReceiverTypeName ¶
func GetStructName ¶
func MakeInterface ¶
func ParseStruct ¶
func ParseStruct(src []byte, copyDocs bool, oexs []string) (sdata map[string]*StructData)
Types ¶
type StringSlice ¶
type StringSlice []string
func (StringSlice) Contain ¶
func (strs StringSlice) Contain(s string) bool
type StructData ¶
Click to show internal directories.
Click to hide internal directories.