functions

package
v0.0.0-...-f818ad4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AUTO_RECOMPILE_INTERVAL = time.Millisecond * 250
View Source
const ILLEGAL_CHAR_GO = "🟦"

Variables

This section is empty.

Functions

func GetFunc

func GetFunc(name string) (func([]any) ([]any, error), error)

func Init

func Init() error

func Recompile

func Recompile() string

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 GoFileMetadata struct {
	Filename string `json:"filename"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	Sha256   string `json:"sha256"`
	Size     int64  `json:"size"`
	Kind     string `json:"kind"`
}

type GoVersionMetadata

type GoVersionMetadata struct {
	Version string           `json:"version"`
	Stable  bool             `json:"stable"`
	Files   []GoFileMetadata `json:"files"`
}

type Properties

type Properties struct {
	Names []string
	Types []string
}

Jump to

Keyboard shortcuts

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