Documentation ¶
Overview ¶
Copyright (c) 2023 thorstenrie. All Rights Reserved. Use is governed with GNU Affero General Public License v3.0 that can be found in the LICENSE file.
Copyright (c) 2023 thorstenrie. All Rights Reserved. Use is governed with GNU Affero General Public License v3.0 that can be found in the LICENSE file.
Copyright (c) 2023 thorstenrie. All Rights Reserved. Use is governed with GNU Affero General Public License v3.0 that can be found in the LICENSE file.
Copyright (c) 2023 thorstenrie. All Rights Reserved. Use is governed with GNU Affero General Public License v3.0 that can be found in the LICENSE file.
Index ¶
- func Generate(fn tsfio.Filename) error
- type AssignmentArgs
- type Code
- func (code *Code) Addr() *Code
- func (code *Code) Assignment(a *AssignmentArgs) *Code
- func (code *Code) BlockEnd() *Code
- func (code *Code) Call(n string) *Code
- func (code *Code) CompositeLit(LiteralType string) *Code
- func (code *Code) Func1(a *Func1Args) *Code
- func (code *Code) FuncEnd() *Code
- func (code *Code) Ident(n string) *Code
- func (code *Code) If(a *IfArgs) *Code
- func (code *Code) IfErr(a *IfErrArgs) *Code
- func (code *Code) KeyedElement(a *KeyedElementArgs) *Code
- func (code *Code) LineComment(c string) *Code
- func (code *Code) List() *Code
- func (code *Code) Listln() *Code
- func (code *Code) ParamEnd() *Code
- func (code *Code) ParamEndln() *Code
- func (code *Code) Return() *Code
- func (code *Code) SelField(a *SelArgs) *Code
- func (code *Code) SelMethod(a *SelArgs) *Code
- func (code *Code) ShortVarDecl(a *ShortVarDeclArgs) *Code
- func (code *Code) String() string
- func (code *Code) Type(a *TypeArgs) *Code
- func (code *Code) TypeStruct(n string) *Code
- type Codefile
- type Func1Args
- type IfArgs
- type IfErrArgs
- type KeyedElementArgs
- type SelArgs
- type ShortVarDeclArgs
- type TypeArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssignmentArgs ¶
type AssignmentArgs struct {
ExprLeft, ExprRight string
}
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
func (*Code) CompositeLit ¶
Composite Literal
func (*Code) KeyedElement ¶
func (code *Code) KeyedElement(a *KeyedElementArgs) *Code
Keyed element of a Composite literal
func (*Code) ShortVarDecl ¶
func (code *Code) ShortVarDecl(a *ShortVarDeclArgs) *Code
Short variable declaration
func (*Code) TypeStruct ¶
Type declaration for struct type
type Codefile ¶
type Codefile struct {
// contains filtered or unexported fields
}
func (*Codefile) FinishFile ¶
type KeyedElementArgs ¶
type KeyedElementArgs struct {
Key, Element string
}
type ShortVarDeclArgs ¶
type ShortVarDeclArgs struct {
Ident, Expr string
}