packages

package
v0.0.0-...-c5c828c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct{}

func (Env) Access

func (e Env) Access(variable string) (*Variable, error)

func (Env) Run

func (e Env) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type FuncReturn

type FuncReturn struct {
	Type  VarType
	Value interface{}
}

type HttpSec

type HttpSec struct{}

func (HttpSec) Access

func (HttpSec) Access(variable string) (*Variable, error)

func (HttpSec) Run

func (h HttpSec) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type IO

type IO struct{}

func (IO) Access

func (IO) Access(variable string) (*Variable, error)

func (IO) Run

func (i IO) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type Numbers

type Numbers struct{}

func (Numbers) Access

func (Numbers) Access(variable string) (*Variable, error)

func (Numbers) Run

func (r Numbers) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type Package

type Package interface {
	Run(fn string, args []*Variable) ([]*FuncReturn, error)
	Access(variable string) (*Variable, error)
}

type Request

type Request struct {
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(r *http.Request) *Request

func (*Request) Access

func (*Request) Access(variable string) (*Variable, error)

func (*Request) Run

func (r *Request) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type Response

type Response struct {
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse(rw http.ResponseWriter) *Response

func (*Response) Access

func (*Response) Access(variable string) (*Variable, error)

func (*Response) Run

func (r *Response) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type Strs

type Strs struct{}

func (Strs) Access

func (Strs) Access(variable string) (*Variable, error)

func (Strs) Run

func (s Strs) Run(fn string, args []*Variable) ([]*FuncReturn, error)

type VarType

type VarType string
const (
	VarNil          VarType = "nil"
	VarString       VarType = "string"
	VarSingleString VarType = "string_single"
	VarNumber       VarType = "number"
	VarFloat        VarType = "float"
	VarBool         VarType = "bool"
	VarTemplate     VarType = "template"
	VarVariable     VarType = "variable"

	VarUnknown VarType = "#unknown#"

	FuncCall VarType = "func_call"

	VarExpression VarType = "expression"
	VarOperator   VarType = "operator"

	UsePackage VarType = "use_package"
)

type Variable

type Variable struct {
	Type  VarType
	Value interface{}
}

Jump to

Keyboard shortcuts

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