code

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousFuncStmt

type AnonymousFuncStmt struct {
	Params  Params
	Returns Returns
	Body    Body
}

func (AnonymousFuncStmt) Code

func (afs AnonymousFuncStmt) Code() string

type Body

type Body []Statement

func (Body) GetCode

func (b Body) GetCode() string

type CallStmt

type CallStmt struct {
	Caller   Statement
	CallName string
	Args     ListCommaStmt
}

func (CallStmt) Code

func (cs CallStmt) Code() string

type Chain

type Chain struct {
	CallName string
	Args     ListCommaStmt
}

type ChainStmt

type ChainStmt []Chain

func (ChainStmt) ChainCall

func (cs ChainStmt) ChainCall(chain Chain) ChainStmt

func (ChainStmt) Code

func (cs ChainStmt) Code() string

type DeclColonStmt

type DeclColonStmt struct {
	Left  ListCommaStmt
	Right Statement
}

func (DeclColonStmt) Code

func (dcs DeclColonStmt) Code() string

type DeclVarStmt

type DeclVarStmt struct {
	Name  string
	Type  Type
	Value Statement
}

func (DeclVarStmt) Code

func (dvs DeclVarStmt) Code() string

type ForRangeBlockStmt

type ForRangeBlockStmt struct {
	RangeName string
	Key       string
	Value     string
	Body      Body
}

func (ForRangeBlockStmt) Code

func (rbs ForRangeBlockStmt) Code() string

type IdentType

type IdentType string

func (IdentType) RealName

func (st IdentType) RealName() string

type IfBlockStmt

type IfBlockStmt struct {
	Condition []Statement
	Body      Body
}

func (IfBlockStmt) Code

func (ibt IfBlockStmt) Code() string

type InterfaceMethod

type InterfaceMethod struct {
	Comment string
	Name    string
	Params  Params
	Returns Returns
}

func (*InterfaceMethod) GetCode

func (im *InterfaceMethod) GetCode() string

type InterfaceMethods

type InterfaceMethods []InterfaceMethod

func (InterfaceMethods) GetCode

func (ims InterfaceMethods) GetCode() string

type InterfaceType

type InterfaceType struct {
	Name    string
	Methods InterfaceMethods
}

func (InterfaceType) RealName

func (it InterfaceType) RealName() string

type ListCommaStmt

type ListCommaStmt []Statement

func (ListCommaStmt) Code

func (lcs ListCommaStmt) Code() string

type MapPair

type MapPair struct {
	Key   Statement
	Value Statement
}

func (MapPair) Code

func (mp MapPair) Code() string

type MapStmt

type MapStmt struct {
	Name string
	Pair []MapPair
}

func (MapStmt) Code

func (ms MapStmt) Code() string

type MapType

type MapType struct {
	KeyType   Type
	ValueType Type
}

func (MapType) RealName

func (mt MapType) RealName() string

type MethodReceiver

type MethodReceiver struct {
	Name string
	Type Type
}

func (*MethodReceiver) GetCode

func (mr *MethodReceiver) GetCode() string

type Param

type Param struct {
	Name string
	Type Type
}

func (*Param) GetCode

func (p *Param) GetCode() string

type Params

type Params []Param

func (Params) GetCode

func (ps Params) GetCode() string

type RawStmt

type RawStmt string

func (RawStmt) Code

func (rs RawStmt) Code() string

type ReturnStmt

type ReturnStmt struct {
	ListCommaStmt ListCommaStmt
}

func (ReturnStmt) Code

func (rs ReturnStmt) Code() string

type Returns

type Returns []Type

func (Returns) GetCode

func (rs Returns) GetCode() string

type SelectorExprType

type SelectorExprType struct {
	X   string
	Sel string
}

func (SelectorExprType) RealName

func (set SelectorExprType) RealName() string

type SliceAppendStmt

type SliceAppendStmt struct {
	SliceName  string
	AppendData Statement
}

func (SliceAppendStmt) Code

func (sas SliceAppendStmt) Code() string

type SliceAppendsStmt

type SliceAppendsStmt []SliceAppendStmt

func (SliceAppendsStmt) Code

func (sas SliceAppendsStmt) Code() string

type SliceStmt

type SliceStmt struct {
	Name   string
	Values []MapPair
}

func (SliceStmt) Code

func (ss SliceStmt) Code() string

type SliceType

type SliceType struct {
	ElementType Type
}

func (SliceType) RealName

func (st SliceType) RealName() string

type StarExprType

type StarExprType struct {
	RealType Type
}

func (StarExprType) RealName

func (set StarExprType) RealName() string

type Statement

type Statement interface {
	Code() string
}

type StructField

type StructField struct {
	Name string
	Type Type
	Tag  reflect.StructTag
}

func (*StructField) GetCode

func (sf *StructField) GetCode() string

type StructFields

type StructFields []StructField

func (StructFields) GetCode

func (sfs StructFields) GetCode() string

type Type

type Type interface {
	RealName() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL