Versions in this module Expand all Collapse all v0 v0.1.0 Mar 11, 2018 Changes in this version + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type ArgDef struct + GoType string + Name string + type FunctionDef struct + Author string + Description string + ExpectedArgTypes []ArgDef + ExpectedReturnTypes []RetDef + Name string + Package string + func (f *FunctionDef) BuildGodoc() ([]string, error) + func (f *FunctionDef) ReceiverString() string + func (f *FunctionDef) ReturnString() string + type Generator struct + Config string + Funcs map[string]*FunctionDef + Libs map[string]*Library + Logger *logrus.Logger + Package string + func (g *Generator) BuildDocs() bytes.Buffer + func (g *Generator) BuildSource() bytes.Buffer + func (g *Generator) ExtractFunctionList(yData []byte) map[string]*FunctionDef + func (g *Generator) ParseLibs() + func (g *Generator) ParseYAML(path string) + func (g *Generator) ResolveLibs() []string + type Library struct + AST *ast.File + FSet *token.FileSet + Funcs map[string]*FunctionDef + Logger *logrus.Logger + Name string + Path string + Source []byte + func (l *Library) ParseLibrary(g *Generator) + func (l *Library) WriteModifiedSource() + type RetDef struct + GoType string + Name string + ReturnToVM bool