Documentation
¶
Index ¶
- func Array(name string, t ast.Expr, exprs []ast.Expr) *ast.GenDecl
- func Channel(c cspinfo.Channel) *ast.CompositeLit
- func ChannelArray(name string, arr []cspinfo.Channel) *ast.GenDecl
- func Decl(tok token.Token, name string, expr ast.Expr) *ast.GenDecl
- func Func(name string, params *ast.FieldList, results *ast.FieldList) *ast.FuncDecl
- func Function(name string, params []*ast.Field, results []*ast.Field, body []ast.Stmt) *ast.FuncDecl
- func Goroutine(g *cspinfo.Goroutine) *ast.CompositeLit
- func GoroutineArray(name string, arr []*cspinfo.Goroutine) *ast.GenDecl
- func Int(tok token.Token, name string, value int) *ast.GenDecl
- func IntArray(name string, arr []int) *ast.GenDecl
- func SimpleArrayType(arrayType string) ast.Expr
- func StringArray(name string, arr []string) *ast.GenDecl
- func Type(name *ast.Ident, typeExpr ast.Expr) *ast.GenDecl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Channel ¶
func Channel(c cspinfo.Channel) *ast.CompositeLit
Channel generates a Channel struct declaration
func ChannelArray ¶
ChannelArray generates an Channel strut array declaration
func Function ¶
func Function(name string, params []*ast.Field, results []*ast.Field, body []ast.Stmt) *ast.FuncDecl
Function generates a function definition.
func Goroutine ¶
func Goroutine(g *cspinfo.Goroutine) *ast.CompositeLit
Goroutine generates a Goroutine struct declaration
func GoroutineArray ¶
GoroutineArray generates an Goroutine struct array declaration
func SimpleArrayType ¶
SimpleArrayType generates an array type.
func StringArray ¶
StringArray generates a string array declaration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.