Documentation ¶
Index ¶
- Constants
- func Customize(custom *Custom) error
- func Gentee2GoType(gval interface{}, gtype ...string) interface{}
- func Go2GenteeType(goval interface{}, gtype ...string) (interface{}, error)
- func Version() string
- type Custom
- type EmbedItem
- type Exec
- type Gentee
- type Progress
- type ProgressFunc
- type Settings
- type Unit
Constants ¶
View Source
const ( SysSuspend = vm.SysSuspend SysResume = vm.SysResume SysTerminate = vm.SysTerminate )
Variables ¶
This section is empty.
Functions ¶
func Gentee2GoType ¶ added in v1.10.0
func Gentee2GoType(gval interface{}, gtype ...string) interface{}
Gentee2GoType converts Gentee type to go standard type
func Go2GenteeType ¶ added in v1.10.0
Go2GenteeType converts go type to gentee type
Types ¶
type Custom ¶ added in v1.7.0
type Custom struct {
Embedded []EmbedItem
}
Custom is a structure with parameters for compiling and runtime
type EmbedItem ¶ added in v1.7.0
type EmbedItem struct { Prototype string Object interface{} }
EmbedItem is a structure for declaration of embedded functions.
type Gentee ¶
Gentee is a common structure for compiling and executing Gentee source code
func (*Gentee) Compile ¶
Compile compiles the Gentee source code. The function returns bytecode, id of the compiled unit and error code.
func (*Gentee) CompileAndRun ¶ added in v1.6.0
CompileAndRun compiles the specified Gentee source file and run it.
func (*Gentee) CompileFile ¶
CompileFile compiles the specified Gentee source file. The function returns bytecode, id of the compiled unit and error code.
type ProgressFunc ¶ added in v1.15.0
type ProgressFunc = vm.ProgressFunc
Click to show internal directories.
Click to hide internal directories.