Versions in this module Expand all Collapse all v1 v1.1.0 Jun 14, 2022 Changes in this version + type Cookie struct + func ToCookie(v Value) (Cookie, error) + func (c Cookie) Select(val Value) (Value, error) + func (c Cookie) Set(name string, val Value) error + func (c Cookie) Sprint() string + func (c Cookie) String() string + type Duration struct + Value time.Duration + func ToDuration(v Value) (Duration, error) + func (d Duration) Sprint() string + func (d Duration) String() string + type Time struct + Value time.Time + func (t Time) Sprint() string + func (t Time) String() string + type Tuple struct + func (t *Tuple) Sprint() string + func (t *Tuple) String() string v1.0.0 Feb 12, 2022 Changes in this version + func CompareType(a, b Value) error + func Truthy(v Value) bool + func Type(v Value) string + type Array struct + Items []Value + func NewArray(items []Value) (*Array, error) + func (a *Array) Get(v Value) (Value, error) + func (a *Array) Has(v Value) bool + func (a *Array) MarshalJSON() ([]byte, error) + func (a *Array) Next() (Value, Value, error) + func (a *Array) Set(strict bool, key, val Value) error + func (a *Array) Sprint() string + func (a *Array) String() string + type Bool struct + Value bool + func ToBool(v Value) (Bool, error) + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) Sprint() string + func (b Bool) String() string + type File struct + func ToFile(v Value) (File, error) + func (f File) Close() error + func (f File) Read(p []byte) (int, error) + func (f File) Seek(offset int64, whence int) (int64, error) + func (f File) Sprint() string + func (f File) String() string + type Float struct + Value float64 + func (f Float) MarshalJSON() ([]byte, error) + func (f Float) Sprint() string + func (f Float) String() string + type FormData struct + ContentType string + Data *bytes.Reader + func ToFormData(v Value) (*FormData, error) + func (f *FormData) Select(val Value) (Value, error) + func (f *FormData) Sprint() string + func (f *FormData) String() string + type Index interface + Get func(Value) (Value, error) + Has func(Value) bool + Set func(bool, Value, Value) error + func ToIndex(v Value) (Index, error) + type Int struct + Value int64 + func ToInt(v Value) (Int, error) + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) Sprint() string + func (i Int) String() string + type Iterable interface + Next func() (Value, Value, error) + func ToIterable(v Value) (Iterable, error) + type Name struct + Value string + func ToName(v Value) (Name, error) + func (n Name) Sprint() string + func (n Name) String() string + type Object struct + Order []string + Pairs map[string]Value + func ToObject(v Value) (*Object, error) + func (o *Object) Get(v Value) (Value, error) + func (o *Object) Has(v Value) bool + func (o *Object) MarshalJSON() ([]byte, error) + func (o *Object) Next() (Value, Value, error) + func (o *Object) Set(strict bool, key, val Value) error + func (o *Object) Sprint() string + func (o *Object) String() string + type Request struct + Transport http.RoundTripper + func ToRequest(v Value) (*Request, error) + func (r *Request) Select(val Value) (Value, error) + func (r *Request) Sprint() string + func (r *Request) String() string + type Response struct + func (r Response) Select(val Value) (Value, error) + func (r Response) Sprint() string + func (r Response) String() string + type Selector interface + Select func(Value) (Value, error) + func ToSelector(v Value) (Selector, error) + type Stream interface + func BufferStream(r *bytes.Reader) Stream + func ToStream(v Value) (Stream, error) + type String struct + Value string + func ToString(v Value) (String, error) + func (s String) MarshalJSON() ([]byte, error) + func (s String) Sprint() string + func (s String) String() string + type Value interface + Sprint func() string + String func() string + func Compare(a Value, op syntax.Op, b Value) (Value, error) + func DecodeJSON(r io.Reader) (Value, error) + func NewStream(s Stream) Value + type Zero struct + func (z Zero) MarshalJSON() ([]byte, error) + func (z Zero) Sprint() string + func (z Zero) String() string