Documentation ¶
Index ¶
Constants ¶
View Source
const UTIL_FILE = "primitive.go"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
Represents a Go source file in the output package
func (*File) Functions ¶
func (f *File) Functions() []FunctionName
type FunctionName ¶
type FunctionName struct {
// contains filtered or unexported fields
}
type FunctionNameList ¶
type FunctionNameList []FunctionName
Implement the Sortable interface for FunctionNames
func (FunctionNameList) Len ¶
func (f FunctionNameList) Len() int
func (FunctionNameList) Less ¶
func (f FunctionNameList) Less(i, j int) bool
Sort functions by the struct to which they're attached first, then the name of the method itself. If the function isn't attached to a struct, put it at the bottom
func (FunctionNameList) Swap ¶
func (f FunctionNameList) Swap(i, j int)
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
Represents the output package
func NewPackage ¶
func (*Package) WriteFiles ¶
Click to show internal directories.
Click to hide internal directories.