evaluator

package
v0.0.0-...-92c1b66 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NULL  = &object.Null{}
	TRUE  = &object.Boolean{Value: true}
	FALSE = &object.Boolean{Value: false}
)
View Source
var ApplyFunctionInside func(fn object.Object, args []object.Object) object.Object

Functions

func BasicAuth

func BasicAuth(h httprouter.Handle, requiredUser, requiredPassword string) httprouter.Handle

func DebugInterface

func DebugInterface(a interface{})

func Eval

func Eval(node ast.Node, env *object.Environment) object.Object

func HashKeyExist

func HashKeyExist(hash *object.Hash, hashpair object.HashPair) bool

func MakeStruct

func MakeStruct(typeName string, vals map[string]interface{}) interface{}

func ParseJson

func ParseJson(data []byte) *object.Hash

func ParseJsonToString

func ParseJsonToString(data object.Object) string

func ParseXML

func ParseXML(file string) *object.Hash

Types

type ServerFunction

type ServerFunction struct {
	Name   string
	Router *gin.Engine
}

func NewServer

func NewServer(name string) *ServerFunction

func (*ServerFunction) RouterGenerator

func (fn *ServerFunction) RouterGenerator(obj object.Object) *ServerFunction

func (*ServerFunction) Server

func (fn *ServerFunction) Server(args ...object.Object) object.Object

Jump to

Keyboard shortcuts

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