Documentation
¶
Index ¶
- Constants
- func GetFunc(name string) (func([]any) ([]any, error), error)
- func Init() error
- func Recompile() string
- func RegenerateUserCodeAsSharedObjectGo(components FileComponents, inpPaths, outPaths []string) error
- type FileComponents
- type FuncComponent
- type FuncComponentSignature
- type GoBinaryMetadata
- type GoFileMetadata
- type GoVersionMetadata
- type Properties
Constants ¶
View Source
const AUTO_RECOMPILE_INTERVAL = time.Millisecond * 250
View Source
const ILLEGAL_CHAR_GO = "🟦"
Variables ¶
This section is empty.
Functions ¶
func RegenerateUserCodeAsSharedObjectGo ¶
func RegenerateUserCodeAsSharedObjectGo(components FileComponents, inpPaths, outPaths []string) error
Types ¶
type FileComponents ¶
type FileComponents struct {
Imports []string
Vars map[string]string
Consts map[string]string
PublicFunctions map[string]FuncComponent
PrivateFunctions map[string]FuncComponent
Types []string
}
func DumbLexer ¶
func DumbLexer(contents []byte) (FileComponents, error)
type FuncComponent ¶
type FuncComponent struct {
FuncComponentSignature
Comment string
Body string
BodyReturnValues []string
}
type FuncComponentSignature ¶
type FuncComponentSignature struct {
SigParams Properties
SigReturnTypes []string
}
func GetFuncSignature ¶
func GetFuncSignature(name string) (FuncComponentSignature, error)
type GoBinaryMetadata ¶
type GoBinaryMetadata = []GoVersionMetadata
type GoFileMetadata ¶
type GoVersionMetadata ¶
type GoVersionMetadata struct {
Version string `json:"version"`
Stable bool `json:"stable"`
Files []GoFileMetadata `json:"files"`
}
type Properties ¶
Click to show internal directories.
Click to hide internal directories.