package
Version:
v0.0.0-...-a007d9a
Opens a new window with list of versions in this module.
Published: Mar 19, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package parse contains simple go parser code to be used to generate code
from interfaces.
FindType finds a file level type declaration and returns it if found.
FormatSource runs the equivalent of gofmt on the buffer and returns the
formatted version.
If the code is not valid go syntax, prefix the buffer with a comment about
this issue and include the buffer unformatted.
Arg is one parameter or return value.
type Method struct {
Name string
Params []Arg
Results []Arg
}
Method is a simplification of ast.FuncType using only strings.
EnumInterface enumerates all the methods of an interface.
Useful to generate code from an interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.