extension

package
v0.0.0-...-7ec3e8e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuiltinsModule = &object.Module{
	Members: map[string]object.Object{
		"print": &object.Function{Name: "print", Fn: print},
		"range": &object.Function{Name: "range", Fn: range_},
		"max":   &object.Function{Name: "max", Fn: max},
		"min":   &object.Function{Name: "min", Fn: min},
		"Int":   object.IntConstructorFn,
		"Float": object.FloatConstructorFn,
		"Str":   object.StrConstructorFn,
		"Bool":  object.BoolConstructorFn,
		"List":  object.ListConstructorFn,
		"Dict":  object.DictConstructorFn,
	},
}

Functions

func ExecuteHttp

func ExecuteHttp() (object.Object, error)

func ExecuteMath

func ExecuteMath() (object.Object, error)

func ExecuteMime

func ExecuteMime() (object.Object, error)

func ExecuteOs

func ExecuteOs() (object.Object, error)

func ExecuteRandom

func ExecuteRandom() (object.Object, error)

Types

type HTTPBody

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

func NewHTTPBody

func NewHTTPBody(data []byte) *HTTPBody

func (*HTTPBody) Add

func (b *HTTPBody) Add(object.Object) (object.Object, error)

func (*HTTPBody) And

func (b *HTTPBody) And(other object.Object) (object.Object, error)

func (*HTTPBody) Bool

func (b *HTTPBody) Bool() bool

func (*HTTPBody) Compare

func (b *HTTPBody) Compare(object.Object) (int, error)

func (*HTTPBody) Divide

func (b *HTTPBody) Divide(object.Object) (object.Object, error)

func (*HTTPBody) GetAttr

func (b *HTTPBody) GetAttr(name string) (object.Object, error)

func (*HTTPBody) Index

func (b *HTTPBody) Index(object.Object) (object.Object, error)

func (*HTTPBody) Iter

func (b *HTTPBody) Iter() ([]object.Object, error)

func (*HTTPBody) Minus

func (b *HTTPBody) Minus(object.Object) (object.Object, error)

func (*HTTPBody) Multiply

func (b *HTTPBody) Multiply(object.Object) (object.Object, error)

func (*HTTPBody) Not

func (b *HTTPBody) Not() (object.Object, error)

func (*HTTPBody) Or

func (b *HTTPBody) Or(other object.Object) (object.Object, error)

func (*HTTPBody) Read

func (b *HTTPBody) Read(args object.CallArgs) (object.Object, error)

func (*HTTPBody) String

func (b *HTTPBody) String() string

type HTTPResponse

type HTTPResponse struct {
	Status  int
	Headers *object.Dict
	Body    *HTTPBody
}

func NewHTTPResponse

func NewHTTPResponse(status int, headers *object.Dict, body *HTTPBody) *HTTPResponse

func (*HTTPResponse) Add

func (*HTTPResponse) And

func (r *HTTPResponse) And(other object.Object) (object.Object, error)

func (*HTTPResponse) Bool

func (r *HTTPResponse) Bool() bool

func (*HTTPResponse) Compare

func (r *HTTPResponse) Compare(object.Object) (int, error)

func (*HTTPResponse) Divide

func (r *HTTPResponse) Divide(object.Object) (object.Object, error)

func (*HTTPResponse) GetAttr

func (r *HTTPResponse) GetAttr(name string) (object.Object, error)

func (*HTTPResponse) Index

func (*HTTPResponse) Iter

func (r *HTTPResponse) Iter() ([]object.Object, error)

func (*HTTPResponse) Minus

func (*HTTPResponse) Multiply

func (r *HTTPResponse) Multiply(object.Object) (object.Object, error)

func (*HTTPResponse) Not

func (r *HTTPResponse) Not() (object.Object, error)

func (*HTTPResponse) Or

func (r *HTTPResponse) Or(other object.Object) (object.Object, error)

func (*HTTPResponse) String

func (r *HTTPResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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