Documentation ¶
Index ¶
- Constants
- Variables
- func Distance(str1, str2 string) int
- func Float64sAreSorted(a []float64, o Ordering) bool
- func InstanceOf(className string, oi *ObjectInstance) bool
- func IntsAreSorted(a []int64, o Ordering) bool
- func IsTrue(obj Object) bool
- func LoggingMiddleware(next http.Handler) http.Handler
- func ObjectToValue(obj Object, typ reflect.Type) reflect.Value
- func PanicToError(p interface{}, node ast.Node) error
- func RegisterBuiltin(name string, f *Builtin)
- func RegisterFunctions(name string, vars map[string]interface{})
- func RegisterVars(name string, vars map[string]interface{})
- func ServeHTTP(scope *Scope, f *Function, w http.ResponseWriter, r *http.Request)
- func ServeService(line string, scope *Scope, f *Function, w http.ResponseWriter, r *http.Request)
- func SetGlobalObj(name string, Obj Object)
- func StringsAreSorted(a []string, o Ordering) bool
- func TypoSuggestions(keys []string, miss string) []string
- func UIntsAreSorted(a []uint64, o Ordering) bool
- func Vars(r *http.Request) map[string]string
- type Array
- func (a *Array) Average(line string, args ...Object) Object
- func (a *Array) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (a *Array) Count(line string, args ...Object) Object
- func (a *Array) Empty(line string, args ...Object) Object
- func (a *Array) Filter(line string, scope *Scope, args ...Object) Object
- func (a *Array) First(line string, args ...Object) Object
- func (a *Array) Get(line string, args ...Object) Object
- func (a *Array) Includes(line string, args ...Object) Object
- func (a *Array) Index(line string, args ...Object) Object
- func (a *Array) Inspect() string
- func (a *Array) Last(line string, args ...Object) Object
- func (a *Array) Len(line string, args ...Object) Object
- func (a *Array) Map(line string, scope *Scope, args ...Object) Object
- func (a *Array) MarshalJSON() ([]byte, error)
- func (a *Array) Max(line string, args ...Object) Object
- func (a *Array) Merge(line string, args ...Object) Object
- func (a *Array) Min(line string, args ...Object) Object
- func (a *Array) Pop(line string, args ...Object) Object
- func (a *Array) Push(line string, args ...Object) Object
- func (a *Array) Reduce(line string, scope *Scope, args ...Object) Object
- func (a *Array) Set(line string, args ...Object) Object
- func (a *Array) Shift(line string, args ...Object) Object
- func (a *Array) Sum(line string, args ...Object) Object
- func (a *Array) Tail(line string, args ...Object) Object
- func (a *Array) Type() ObjectType
- func (a *Array) UnShift(line string, args ...Object) Object
- func (a *Array) UnmarshalJSON(b []byte) error
- type Boolean
- func (b *Boolean) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (b *Boolean) HashKey() HashKey
- func (b *Boolean) Inspect() string
- func (b *Boolean) IsValid(line string, args ...Object) Object
- func (b *Boolean) MarshalJSON() ([]byte, error)
- func (b *Boolean) Message(line string, args ...Object) Object
- func (b *Boolean) Scan(value interface{}) error
- func (b *Boolean) SetValid(line string, args ...Object) Object
- func (b *Boolean) ToTrueFalse(line string, args ...Object) Object
- func (b *Boolean) ToYesNo(line string, args ...Object) Object
- func (b *Boolean) Type() ObjectType
- func (b *Boolean) UnmarshalJSON(bytes []byte) error
- func (b Boolean) Value() (driver.Value, error)
- type Break
- type BuildVarsFunc
- type Builtin
- type BuiltinFunc
- type BuiltinMethod
- type BuiltinMethodFunction
- type CallFrame
- type CallStack
- type ChanObject
- func (c *ChanObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (c *ChanObject) Close(line string, args ...Object) Object
- func (c *ChanObject) Inspect() string
- func (c *ChanObject) Recv(line string, args ...Object) Object
- func (c *ChanObject) Send(line string, args ...Object) Object
- func (c *ChanObject) Type() ObjectType
- type Class
- func (c *Class) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (c *Class) CheckMembers(val string) bool
- func (c *Class) CheckMethods(val string) bool
- func (c *Class) CheckProperties(val string) bool
- func (c *Class) GetMethod(name string) ClassMethod
- func (c *Class) GetModifierLevel(name string, kind ClassComponentKind) ast.ModifierLevel
- func (c *Class) GetProperty(name string) *ast.PropertyDeclStmt
- func (c *Class) Inspect() string
- func (c *Class) IsAnnotationPresent(line string, args ...Object) Object
- func (c *Class) IsStatic(val string, kind ClassComponentKind) bool
- func (c *Class) Type() ObjectType
- type ClassComponentKind
- type ClassMethod
- type Closeable
- type Context
- type Continue
- type CsvObj
- func (c *CsvObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (c *CsvObj) CloseReader(line string, args ...Object) Object
- func (c *CsvObj) Flush(line string, args ...Object) Object
- func (c *CsvObj) Inspect() string
- func (c *CsvObj) Read(line string, args ...Object) Object
- func (c *CsvObj) ReadAll(line string, args ...Object) Object
- func (c *CsvObj) SetOptions(line string, args ...Object) Object
- func (c *CsvObj) Type() ObjectType
- func (c *CsvObj) Write(line string, args ...Object) Object
- func (c *CsvObj) WriteAll(line string, args ...Object) Object
- type DbResultObject
- func (r *DbResultObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (r *DbResultObject) Inspect() string
- func (r *DbResultObject) LastInsertId(line string, args ...Object) Object
- func (r *DbResultObject) RowsAffected(line string, args ...Object) Object
- func (r *DbResultObject) Type() ObjectType
- type DbRowObject
- type DbRowsObject
- func (r *DbRowsObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (r *DbRowsObject) Close(line string, args ...Object) Object
- func (r *DbRowsObject) Columns(line string, args ...Object) Object
- func (r *DbRowsObject) Err(line string, args ...Object) Object
- func (r *DbRowsObject) Inspect() string
- func (r *DbRowsObject) Next(line string, args ...Object) Object
- func (r *DbRowsObject) Scan(line string, args ...Object) Object
- func (r *DbRowsObject) Type() ObjectType
- type DbStmtObject
- func (s *DbStmtObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *DbStmtObject) Close(line string, args ...Object) Object
- func (s *DbStmtObject) Exec(line string, args ...Object) Object
- func (s *DbStmtObject) Inspect() string
- func (s *DbStmtObject) Query(line string, args ...Object) Object
- func (s *DbStmtObject) QueryRow(line string, args ...Object) Object
- func (s *DbStmtObject) Type() ObjectType
- type DbTxObject
- func (t *DbTxObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (t *DbTxObject) Commit(line string, args ...Object) Object
- func (t *DbTxObject) Exec(line string, args ...Object) Object
- func (t *DbTxObject) Inspect() string
- func (t *DbTxObject) Prepare(line string, args ...Object) Object
- func (t *DbTxObject) Query(line string, args ...Object) Object
- func (t *DbTxObject) QueryRow(line string, args ...Object) Object
- func (t *DbTxObject) Rollback(line string, args ...Object) Object
- func (t *DbTxObject) Stmt(line string, args ...Object) Object
- func (t *DbTxObject) Type() ObjectType
- type DbgInfo
- type Debugger
- func (d *Debugger) AddBP(filename string, line int)
- func (d *Debugger) CanStop() bool
- func (d *Debugger) DelBP(filename string, line int)
- func (d *Debugger) IsBP(filename string, line int) bool
- func (d *Debugger) MessageReceived(msg message.Message)
- func (d *Debugger) ProcessCommand()
- func (d *Debugger) SetDbgInfos(dbgInfos [][]ast.Node)
- func (d *Debugger) SetFunctions(functions map[string]*ast.FunctionLiteral)
- func (d *Debugger) SetNodeAndScope(node ast.Node, scope *Scope)
- func (d *Debugger) ShowBanner()
- type Decimal
- func Avg(first Decimal, rest ...Decimal) Decimal
- func Max(first Decimal, rest ...Decimal) Decimal
- func Min(first Decimal, rest ...Decimal) Decimal
- func NewDec(value int64, exp int32) Decimal
- func NewFromFloat(value float64) Decimal
- func NewFromFloatWithExponent(value float64, exp int32) Decimal
- func NewFromInt(value int64) Decimal
- func NewFromString(value string) (Decimal, error)
- func NewFromUInt(value uint64) Decimal
- func Sum(first Decimal, rest ...Decimal) Decimal
- func (d Decimal) Abs() Decimal
- func (d Decimal) Add(d2 Decimal) Decimal
- func (d Decimal) Ceil() Decimal
- func (d Decimal) Cmp(d2 Decimal) int
- func (d Decimal) Coefficient() *big.Int
- func (d Decimal) Div(d2 Decimal) Decimal
- func (d Decimal) DivRound(d2 Decimal, precision int32) Decimal
- func (d Decimal) Equal(d2 Decimal) bool
- func (d Decimal) Equals(d2 Decimal) bool
- func (d Decimal) Exponent() int32
- func (d Decimal) Float64() (f float64, exact bool)
- func (d Decimal) Floor() Decimal
- func (d Decimal) GreaterThan(d2 Decimal) bool
- func (d Decimal) GreaterThanOrEqual(d2 Decimal) bool
- func (d Decimal) IntPart() int64
- func (d Decimal) LessThan(d2 Decimal) bool
- func (d Decimal) LessThanOrEqual(d2 Decimal) bool
- func (d Decimal) MarshalJSON() ([]byte, error)
- func (d Decimal) Mod(d2 Decimal) Decimal
- func (d Decimal) Mul(d2 Decimal) Decimal
- func (d Decimal) Neg() Decimal
- func (d Decimal) Pow(d2 Decimal) Decimal
- func (d Decimal) QuoRem(d2 Decimal, precision int32) (Decimal, Decimal)
- func (d Decimal) Rat() *big.Rat
- func (d Decimal) Round(places int32) Decimal
- func (d *Decimal) Scan(value interface{}) error
- func (d Decimal) Sign() int
- func (d Decimal) String() string
- func (d Decimal) StringFixed(places int32) string
- func (d Decimal) StringScaled(exp int32) string
- func (d Decimal) Sub(d2 Decimal) Decimal
- func (d Decimal) Truncate(precision int32) Decimal
- func (d *Decimal) UnmarshalJSON(decimalBytes []byte) error
- func (d Decimal) Value() (driver.Value, error)
- type DecimalObj
- func (d *DecimalObj) Abs(line string, args ...Object) Object
- func (d *DecimalObj) Add(line string, args ...Object) Object
- func (d *DecimalObj) Avg(line string, args ...Object) Object
- func (d *DecimalObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (d *DecimalObj) Ceil(line string, args ...Object) Object
- func (d *DecimalObj) Cmp(line string, args ...Object) Object
- func (d *DecimalObj) Div(line string, args ...Object) Object
- func (d *DecimalObj) DivRound(line string, args ...Object) Object
- func (d *DecimalObj) Equal(line string, args ...Object) Object
- func (d *DecimalObj) Exponent(line string, args ...Object) Object
- func (d *DecimalObj) Float(line string, args ...Object) Object
- func (d *DecimalObj) Floor(line string, args ...Object) Object
- func (d *DecimalObj) FromFloat(line string, args ...Object) Object
- func (d *DecimalObj) FromFloatWithExponent(line string, args ...Object) Object
- func (d *DecimalObj) FromString(line string, args ...Object) Object
- func (d *DecimalObj) GetDivisionPrecision(line string, args ...Object) Object
- func (d *DecimalObj) GetMarshalJSONWithoutQuotes(line string, args ...Object) Object
- func (d *DecimalObj) GreaterThan(line string, args ...Object) Object
- func (d *DecimalObj) GreaterThanOrEqual(line string, args ...Object) Object
- func (d *DecimalObj) Inspect() string
- func (d *DecimalObj) IntPart(line string, args ...Object) Object
- func (d *DecimalObj) LessThan(line string, args ...Object) Object
- func (d *DecimalObj) LessThanOrEqual(line string, args ...Object) Object
- func (d *DecimalObj) MarshalJSON() ([]byte, error)
- func (d *DecimalObj) Max(line string, args ...Object) Object
- func (d *DecimalObj) Min(line string, args ...Object) Object
- func (d *DecimalObj) Mod(line string, args ...Object) Object
- func (d *DecimalObj) Mul(line string, args ...Object) Object
- func (d *DecimalObj) Neg(line string, args ...Object) Object
- func (d *DecimalObj) New(line string, args ...Object) Object
- func (d *DecimalObj) Pow(line string, args ...Object) Object
- func (d *DecimalObj) Round(line string, args ...Object) Object
- func (d *DecimalObj) Scan(value interface{}) error
- func (d *DecimalObj) SetDivisionPrecision(line string, args ...Object) Object
- func (d *DecimalObj) SetMarshalJSONWithoutQuotes(line string, args ...Object) Object
- func (d *DecimalObj) Sign(line string, args ...Object) Object
- func (d *DecimalObj) String(line string, args ...Object) Object
- func (d *DecimalObj) StringFixed(line string, args ...Object) Object
- func (d *DecimalObj) StringScaled(line string, args ...Object) Object
- func (d *DecimalObj) Sub(line string, args ...Object) Object
- func (d *DecimalObj) Sum(line string, args ...Object) Object
- func (d *DecimalObj) Truncate(line string, args ...Object) Object
- func (d *DecimalObj) Type() ObjectType
- func (d *DecimalObj) UnmarshalJSON(b []byte) error
- func (d DecimalObj) Value() (driver.Value, error)
- type Enum
- func (e *Enum) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (e *Enum) GetName(line string, args ...Object) Object
- func (e *Enum) GetNames(line string, args ...Object) Object
- func (e *Enum) GetValues(line string, args ...Object) Object
- func (e *Enum) Inspect() string
- func (e *Enum) Type() ObjectType
- type Error
- type FileInfoObj
- func (fi *FileInfoObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (fi *FileInfoObj) Inspect() string
- func (fi *FileInfoObj) IsDir(line string, args ...Object) Object
- func (fi *FileInfoObj) ModTime(line string, args ...Object) Object
- func (fi *FileInfoObj) Mode(line string, args ...Object) Object
- func (fi *FileInfoObj) Name(line string, args ...Object) Object
- func (fi *FileInfoObj) Size(line string, args ...Object) Object
- func (fi *FileInfoObj) Type() ObjectType
- type FileObject
- func (f *FileObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (f *FileObject) Close(line string, args ...Object) Object
- func (f *FileObject) GetName(line string, args ...Object) Object
- func (f *FileObject) IOWriter() io.Writer
- func (f *FileObject) Inspect() string
- func (f *FileObject) Read(line string, args ...Object) Object
- func (f *FileObject) ReadAt(line string, args ...Object) Object
- func (f *FileObject) ReadLine(line string, args ...Object) Object
- func (f *FileObject) ReadRune(line string, args ...Object) Object
- func (f *FileObject) Seek(line string, args ...Object) Object
- func (f *FileObject) Stat(line string, args ...Object) Object
- func (f *FileObject) Sync(line string, args ...Object) Object
- func (f *FileObject) Truncate(line string, args ...Object) Object
- func (f *FileObject) Type() ObjectType
- func (f *FileObject) Write(line string, args ...Object) Object
- func (f *FileObject) WriteAt(line string, args ...Object) Object
- func (f *FileObject) WriteLine(line string, args ...Object) Object
- func (f *FileObject) WriteString(line string, args ...Object) Object
- type FilePathObj
- func (f *FilePathObj) Abs(line string, args ...Object) Object
- func (f *FilePathObj) Base(line string, args ...Object) Object
- func (f *FilePathObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (f *FilePathObj) Clean(line string, args ...Object) Object
- func (f *FilePathObj) Dir(line string, args ...Object) Object
- func (f *FilePathObj) EvalSymlinks(line string, args ...Object) Object
- func (f *FilePathObj) Ext(line string, args ...Object) Object
- func (f *FilePathObj) FromSlash(line string, args ...Object) Object
- func (f *FilePathObj) Glob(line string, args ...Object) Object
- func (f *FilePathObj) HasPrefix(line string, args ...Object) Object
- func (f *FilePathObj) Inspect() string
- func (f *FilePathObj) IsAbs(line string, args ...Object) Object
- func (f *FilePathObj) Join(line string, args ...Object) Object
- func (f *FilePathObj) Match(line string, args ...Object) Object
- func (f *FilePathObj) Rel(line string, args ...Object) Object
- func (f *FilePathObj) Split(line string, args ...Object) Object
- func (f *FilePathObj) SplitList(line string, args ...Object) Object
- func (f *FilePathObj) ToSlash(line string, args ...Object) Object
- func (f *FilePathObj) Type() ObjectType
- func (f *FilePathObj) VolumeName(line string, args ...Object) Object
- func (f *FilePathObj) Walk(scope *Scope, line string, args ...Object) Object
- type FlagObj
- func (f *FlagObj) Arg(line string, args ...Object) Object
- func (f *FlagObj) Args(line string, args ...Object) Object
- func (f *FlagObj) Bool(line string, args ...Object) Object
- func (f *FlagObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (f *FlagObj) Float(line string, args ...Object) Object
- func (f *FlagObj) Inspect() string
- func (f *FlagObj) Int(line string, args ...Object) Object
- func (f *FlagObj) IsSet(line string, args ...Object) Object
- func (f *FlagObj) NArg(line string, args ...Object) Object
- func (f *FlagObj) NFlag(line string, args ...Object) Object
- func (f *FlagObj) Parse(line string, args ...Object) Object
- func (f *FlagObj) Parsed(line string, args ...Object) Object
- func (f *FlagObj) PrintDefaults(line string, args ...Object) Object
- func (f *FlagObj) Set(line string, args ...Object) Object
- func (f *FlagObj) String(line string, args ...Object) Object
- func (f *FlagObj) Type() ObjectType
- func (f *FlagObj) UInt(line string, args ...Object) Object
- type Float
- func (f *Float) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (f *Float) Ceil(line string, args ...Object) Object
- func (f *Float) Floor(line string, args ...Object) Object
- func (f *Float) Inspect() string
- func (f *Float) IsValid(line string, args ...Object) Object
- func (f *Float) MarshalJSON() ([]byte, error)
- func (f *Float) Pow(line string, args ...Object) Object
- func (f *Float) Round(line string, args ...Object) Object
- func (f *Float) Scan(value interface{}) error
- func (f *Float) SetValid(line string, args ...Object) Object
- func (f *Float) Sqrt(line string, args ...Object) Object
- func (f *Float) Str(line string, args ...Object) Object
- func (f *Float) Trunc(line string, args ...Object) Object
- func (f *Float) Type() ObjectType
- func (f *Float) UnmarshalJSON(b []byte) error
- func (f Float) Value() (driver.Value, error)
- type Float64Slice
- type FmtObj
- func (f *FmtObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (f *FmtObj) Errorf(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Fprint(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Fprintf(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Fprintln(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Inspect() string
- func (f *FmtObj) Print(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Printf(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Println(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Sprint(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Sprintf(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Sprintln(line string, scope *Scope, args ...Object) Object
- func (f *FmtObj) Type() ObjectType
- type Formatter
- type Function
- type GoFuncObject
- type GoObject
- type GroupObj
- type Hash
- func (h *Hash) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *Hash) Clear(line string, args ...Object) Object
- func (h *Hash) Exists(line string, args ...Object) Object
- func (h *Hash) Filter(line string, scope *Scope, args ...Object) Object
- func (h *Hash) Get(line string, args ...Object) Object
- func (h *Hash) GetPath(line string, args ...Object) Object
- func (h *Hash) Index(line string, args ...Object) Object
- func (h *Hash) Inspect() string
- func (h *Hash) Keys(line string, args ...Object) Object
- func (h *Hash) Len(line string, args ...Object) Object
- func (h *Hash) Map(line string, scope *Scope, args ...Object) Object
- func (h *Hash) MarshalJSON() ([]byte, error)
- func (h *Hash) Merge(line string, args ...Object) Object
- func (h *Hash) Pop(line string, args ...Object) Object
- func (h *Hash) Push(line string, args ...Object) Object
- func (h *Hash) Type() ObjectType
- func (h *Hash) UnmarshalJSON(b []byte) error
- func (h *Hash) Values(line string, args ...Object) Object
- type HashKey
- type HashPair
- type Hashable
- type HttpClient
- func (h *HttpClient) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpClient) Do(line string, args ...Object) Object
- func (h *HttpClient) Get(line string, args ...Object) Object
- func (h *HttpClient) Head(line string, args ...Object) Object
- func (h *HttpClient) Inspect() string
- func (h *HttpClient) Post(line string, args ...Object) Object
- func (h *HttpClient) PostForm(line string, args ...Object) Object
- func (h *HttpClient) Type() ObjectType
- type HttpHeader
- func (h *HttpHeader) Add(line string, args ...Object) Object
- func (h *HttpHeader) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpHeader) Del(line string, args ...Object) Object
- func (h *HttpHeader) Get(line string, args ...Object) Object
- func (h *HttpHeader) Inspect() string
- func (h *HttpHeader) Set(line string, args ...Object) Object
- func (h *HttpHeader) Type() ObjectType
- func (h *HttpHeader) Write(line string, args ...Object) Object
- type HttpObj
- func (h *HttpObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpObj) Get(line string, args ...Object) Object
- func (h *HttpObj) Handle(line string, scope *Scope, args ...Object) Object
- func (h *HttpObj) HandleFunc(line string, scope *Scope, args ...Object) Object
- func (h *HttpObj) Head(line string, args ...Object) Object
- func (h *HttpObj) Inspect() string
- func (h *HttpObj) ListenAndServe(line string, scope *Scope, args ...Object) Object
- func (h *HttpObj) NewRequest(line string, args ...Object) Object
- func (h *HttpObj) NewServer(line string, args ...Object) Object
- func (h *HttpObj) Post(line string, args ...Object) Object
- func (h *HttpObj) PostForm(line string, args ...Object) Object
- func (h *HttpObj) Redirect(line string, args ...Object) Object
- func (h *HttpObj) Type() ObjectType
- type HttpRequest
- func (h *HttpRequest) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpRequest) FormValue(line string, args ...Object) Object
- func (h *HttpRequest) Header(line string, args ...Object) Object
- func (h *HttpRequest) Inspect() string
- func (h *HttpRequest) Method(line string, args ...Object) Object
- func (h *HttpRequest) Type() ObjectType
- func (h *HttpRequest) Write(line string, args ...Object) Object
- type HttpResponse
- func (h *HttpResponse) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpResponse) CloseBody(line string, args ...Object) Object
- func (h *HttpResponse) Header(line string, args ...Object) Object
- func (h *HttpResponse) Inspect() string
- func (h *HttpResponse) ReadAll(line string, args ...Object) Object
- func (h *HttpResponse) Type() ObjectType
- type HttpResponseWriter
- func (h *HttpResponseWriter) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpResponseWriter) Header(line string, args ...Object) Object
- func (h *HttpResponseWriter) IOWriter() io.Writer
- func (h *HttpResponseWriter) Inspect() string
- func (h *HttpResponseWriter) Type() ObjectType
- func (h *HttpResponseWriter) Write(line string, args ...Object) Object
- func (h *HttpResponseWriter) WriteHeader(line string, args ...Object) Object
- func (h *HttpResponseWriter) WriteJson(line string, args ...Object) Object
- type HttpServer
- func (h *HttpServer) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (h *HttpServer) Inspect() string
- func (h *HttpServer) ListenAndServe(line string, args ...Object) Object
- func (h *HttpServer) SetKeepAlivesEnabled(line string, args ...Object) Object
- func (h *HttpServer) SetMaxHeaderBytes(line string, args ...Object) Object
- func (h *HttpServer) SetReadTimeout(line string, args ...Object) Object
- func (h *HttpServer) SetWriteTimeout(line string, args ...Object) Object
- func (h *HttpServer) Type() ObjectType
- type IOUtilObj
- func (i *IOUtilObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (i *IOUtilObj) Inspect() string
- func (i *IOUtilObj) ReadAll(line string, args ...Object) Object
- func (i *IOUtilObj) ReadDir(line string, args ...Object) Object
- func (i *IOUtilObj) ReadFile(line string, args ...Object) Object
- func (i *IOUtilObj) TempDir(line string, args ...Object) Object
- func (i *IOUtilObj) TempFile(line string, args ...Object) Object
- func (i *IOUtilObj) Type() ObjectType
- func (i *IOUtilObj) WriteFile(line string, args ...Object) Object
- type ImportedObject
- type IntSlice
- type Integer
- func (i *Integer) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (i *Integer) Downto(line string, args ...Object) Object
- func (i *Integer) HashKey() HashKey
- func (i *Integer) Inspect() string
- func (i *Integer) IsEven(line string, args ...Object) Object
- func (i *Integer) IsOdd(line string, args ...Object) Object
- func (i *Integer) IsValid(line string, args ...Object) Object
- func (i *Integer) MarshalJSON() ([]byte, error)
- func (i *Integer) Next(line string, args ...Object) Object
- func (i *Integer) Prev(line string, args ...Object) Object
- func (i *Integer) Scan(value interface{}) error
- func (i *Integer) SetValid(line string, args ...Object) Object
- func (i *Integer) Str(line string, args ...Object) Object
- func (i *Integer) Type() ObjectType
- func (i *Integer) UnmarshalJSON(b []byte) error
- func (i *Integer) Upto(line string, args ...Object) Object
- func (i Integer) Value() (driver.Value, error)
- type Interpolable
- type InterpolatedString
- type Iterable
- type Iterator
- type Json
- func (j *Json) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (j *Json) Indent(line string, args ...Object) Object
- func (j *Json) Inspect() string
- func (j *Json) Marshal(line string, args ...Object) Object
- func (j *Json) Read(line string, args ...Object) Object
- func (j *Json) ReadFile(line string, args ...Object) Object
- func (j *Json) Type() ObjectType
- func (j *Json) UnMarshal(line string, args ...Object) Object
- func (j *Json) WriteFile(line string, args ...Object) Object
- type KeyValueObj
- func (kv *KeyValueObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (kv *KeyValueObj) Inspect() string
- func (kv *KeyValueObj) Key(line string, args ...Object) Object
- func (kv *KeyValueObj) Type() ObjectType
- func (kv *KeyValueObj) Value(line string, args ...Object) Object
- type LinqObj
- func (lq *LinqObj) Aggregate(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) AggregateWithSeed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) AggregateWithSeedBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) All(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Any(line string, args ...Object) Object
- func (lq *LinqObj) AnyWith(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Append(line string, args ...Object) Object
- func (lq *LinqObj) Average(line string, args ...Object) Object
- func (lq *LinqObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (lq *LinqObj) Concat(line string, args ...Object) Object
- func (lq *LinqObj) Contains(line string, args ...Object) Object
- func (lq *LinqObj) Count(line string, args ...Object) Object
- func (lq *LinqObj) CountWith(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Distinct(line string, args ...Object) Object
- func (lq *LinqObj) DistinctBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Except(line string, args ...Object) Object
- func (lq *LinqObj) ExceptBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) First(line string, args ...Object) Object
- func (lq *LinqObj) FirstWith(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ForEach(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ForEachIndexed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) From(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) FromInner(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) FromQuery(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) GroupBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) GroupBy2(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Inspect() string
- func (lq *LinqObj) Intersect(line string, args ...Object) Object
- func (lq *LinqObj) IntersectBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Join(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Last(line string, args ...Object) Object
- func (lq *LinqObj) LastWith(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Let(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Max(line string, args ...Object) Object
- func (lq *LinqObj) Min(line string, args ...Object) Object
- func (lq *LinqObj) OrderBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) OrderByDescending(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Prepend(line string, args ...Object) Object
- func (lq *LinqObj) Range(line string, args ...Object) Object
- func (lq *LinqObj) Repeat(line string, args ...Object) Object
- func (lq *LinqObj) Reverse(line string, args ...Object) Object
- func (lq *LinqObj) Select(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Select2(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SelectMany(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SelectManyBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SelectManyByIndexed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SelectManyIndexed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SequenceEqual(line string, args ...Object) Object
- func (lq *LinqObj) Single(line string, args ...Object) Object
- func (lq *LinqObj) SingleWith(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Skip(line string, args ...Object) Object
- func (lq *LinqObj) SkipWhile(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SkipWhileIndexed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Sort(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) SumFloats(line string, args ...Object) Object
- func (lq *LinqObj) SumInts(line string, args ...Object) Object
- func (lq *LinqObj) SumUInts(line string, args ...Object) Object
- func (lq *LinqObj) Take(line string, args ...Object) Object
- func (lq *LinqObj) TakeWhile(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) TakeWhileIndexed(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ThenBy(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ThenByDescending(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ToMap(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) ToOrderedSlice(line string, args ...Object) Object
- func (lq *LinqObj) ToSlice(line string, args ...Object) Object
- func (lq *LinqObj) Type() ObjectType
- func (lq *LinqObj) Union(line string, args ...Object) Object
- func (lq *LinqObj) Where(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Where2(line string, scope *Scope, args ...Object) Object
- func (lq *LinqObj) Zip(line string, scope *Scope, args ...Object) Object
- type ListElemObject
- func (e *ListElemObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (e *ListElemObject) Inspect() string
- func (e *ListElemObject) Next(line string, args ...Object) Object
- func (e *ListElemObject) Prev(line string, args ...Object) Object
- func (e *ListElemObject) Type() ObjectType
- type ListObject
- func (l *ListObject) Back(line string, args ...Object) Object
- func (l *ListObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (l *ListObject) Front(line string, args ...Object) Object
- func (l *ListObject) Init(line string, args ...Object) Object
- func (l *ListObject) InsertAfter(line string, args ...Object) Object
- func (l *ListObject) InsertBefore(line string, args ...Object) Object
- func (l *ListObject) Inspect() string
- func (l *ListObject) Len(line string, args ...Object) Object
- func (l *ListObject) MoveToBack(line string, args ...Object) Object
- func (l *ListObject) MoveToFront(line string, args ...Object) Object
- func (l *ListObject) PushBack(line string, args ...Object) Object
- func (l *ListObject) PushBackList(line string, args ...Object) Object
- func (l *ListObject) PushFront(line string, args ...Object) Object
- func (l *ListObject) PushFrontList(line string, args ...Object) Object
- func (l *ListObject) Remove(line string, args ...Object) Object
- func (l *ListObject) Type() ObjectType
- type LoggerObj
- func (l *LoggerObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (l *LoggerObj) Fatal(line string, args ...Object) Object
- func (l *LoggerObj) Fatalf(line string, args ...Object) Object
- func (l *LoggerObj) Fatalln(line string, args ...Object) Object
- func (l *LoggerObj) Flags(line string, args ...Object) Object
- func (l *LoggerObj) Inspect() string
- func (l *LoggerObj) Output(line string, args ...Object) Object
- func (l *LoggerObj) Panic(line string, args ...Object) Object
- func (l *LoggerObj) Panicf(line string, args ...Object) Object
- func (l *LoggerObj) Panicln(line string, args ...Object) Object
- func (l *LoggerObj) Prefix(line string, args ...Object) Object
- func (l *LoggerObj) Print(line string, args ...Object) Object
- func (l *LoggerObj) Printf(line string, args ...Object) Object
- func (l *LoggerObj) Println(line string, args ...Object) Object
- func (l *LoggerObj) SetFlags(line string, args ...Object) Object
- func (l *LoggerObj) SetOutput(line string, args ...Object) Object
- func (l *LoggerObj) SetPrefix(line string, args ...Object) Object
- func (l *LoggerObj) Type() ObjectType
- type MatcherFunc
- type Math
- func (m *Math) Abs(line string, args ...Object) Object
- func (m *Math) Acos(line string, args ...Object) Object
- func (m *Math) Acosh(line string, args ...Object) Object
- func (m *Math) Asin(line string, args ...Object) Object
- func (m *Math) Asinh(line string, args ...Object) Object
- func (m *Math) Atan(line string, args ...Object) Object
- func (m *Math) Atan2(line string, args ...Object) Object
- func (m *Math) Atanh(line string, args ...Object) Object
- func (m *Math) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (m *Math) Ceil(line string, args ...Object) Object
- func (m *Math) Cos(line string, args ...Object) Object
- func (m *Math) Cosh(line string, args ...Object) Object
- func (m *Math) Exp(line string, args ...Object) Object
- func (m *Math) Floor(line string, args ...Object) Object
- func (m *Math) Inf(line string, args ...Object) Object
- func (m *Math) Inspect() string
- func (m *Math) IsInf(line string, args ...Object) Object
- func (m *Math) IsNaN(line string, args ...Object) Object
- func (m *Math) Max(line string, args ...Object) Object
- func (m *Math) Min(line string, args ...Object) Object
- func (m *Math) NaN(line string, args ...Object) Object
- func (m *Math) Pow(line string, args ...Object) Object
- func (m *Math) Rand(line string, args ...Object) Object
- func (m *Math) RandSeed(line string, args ...Object) Object
- func (m *Math) Sin(line string, args ...Object) Object
- func (m *Math) Sinh(line string, args ...Object) Object
- func (m *Math) Sqrt(line string, args ...Object) Object
- func (m *Math) Tan(line string, args ...Object) Object
- func (m *Math) Tanh(line string, args ...Object) Object
- func (m *Math) Type() ObjectType
- type MethodInfo
- func (m *MethodInfo) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (m *MethodInfo) GetAnnotation(line string, args ...Object) Object
- func (m *MethodInfo) GetAnnotations(line string, args ...Object) Object
- func (m *MethodInfo) GetName(line string, args ...Object) Object
- func (m *MethodInfo) Inspect() string
- func (m *MethodInfo) Invoke(line string, scope *Scope, args ...Object) Object
- func (m *MethodInfo) Type() ObjectType
- type MiddlewareFunc
- type NetObj
- func (n *NetObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (n *NetObj) Inspect() string
- func (n *NetObj) JoinHostPort(line string, args ...Object) Object
- func (n *NetObj) LookupAddr(line string, args ...Object) Object
- func (n *NetObj) LookupHost(line string, args ...Object) Object
- func (n *NetObj) LookupIP(line string, args ...Object) Object
- func (n *NetObj) LookupPort(line string, args ...Object) Object
- func (n *NetObj) SplitHostPort(line string, args ...Object) Object
- func (n *NetObj) Type() ObjectType
- type Nil
- type Number
- type Object
- func Eval(node ast.Node, scope *Scope) (val Object)
- func GetGlobalObj(name string) (Object, bool)
- func GoValueToObject(obj interface{}) Object
- func NewError(line string, t int, args ...interface{}) Object
- func NewHTTPObj() Object
- func NewIOUtilObj() Object
- func NewJsonObj() Object
- func NewLoggerObj() Object
- func NewMathObj() Object
- func NewNetObj() Object
- func NewOptionalObj() Object
- func NewOsObj() Object
- func NewRegExpObj() Object
- func NewService(addr string) Object
- func NewSortObj() Object
- func NewSqlsObject() Object
- func NewStringsObj() Object
- func NewTemplateObj() Object
- func NewTimeObj() Object
- type ObjectInstance
- func (oi *ObjectInstance) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (oi *ObjectInstance) GetMethod(name string) ClassMethod
- func (oi *ObjectInstance) GetModifierLevel(name string, kind ClassComponentKind) ast.ModifierLevel
- func (oi *ObjectInstance) GetProperty(name string) *ast.PropertyDeclStmt
- func (oi *ObjectInstance) Inspect() string
- func (oi *ObjectInstance) IsStatic(val string, kind ClassComponentKind) bool
- func (oi *ObjectInstance) Type() ObjectType
- type ObjectType
- type Optional
- func (o *Optional) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (o *Optional) Empty(line string, args ...Object) Object
- func (o *Optional) Filter(line string, scope *Scope, args ...Object) Object
- func (o *Optional) FlatMap(line string, scope *Scope, args ...Object) Object
- func (o *Optional) Get(line string, args ...Object) Object
- func (o *Optional) IfPresent(line string, scope *Scope, args ...Object) Object
- func (o *Optional) IfPresentOrElse(line string, scope *Scope, args ...Object) Object
- func (o *Optional) Inspect() string
- func (o *Optional) IsPresent(line string, args ...Object) Object
- func (o *Optional) Map(line string, scope *Scope, args ...Object) Object
- func (o *Optional) Of(line string, args ...Object) Object
- func (o *Optional) OfNullable(line string, args ...Object) Object
- func (o *Optional) Or(line string, scope *Scope, args ...Object) Object
- func (o *Optional) OrElse(line string, args ...Object) Object
- func (o *Optional) OrElseGet(line string, scope *Scope, args ...Object) Object
- func (o *Optional) OrElseThrow(line string, args ...Object) Object
- func (o *Optional) Type() ObjectType
- type OrderedQuery
- type Ordering
- type Os
- func (o *Os) Args(line string, args ...Object) Object
- func (o *Os) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (o *Os) Chdir(line string, args ...Object) Object
- func (o *Os) Chmod(line string, args ...Object) Object
- func (o *Os) Chown(line string, args ...Object) Object
- func (o *Os) Clearenv(line string, args ...Object) Object
- func (o *Os) CopyFile(line string, args ...Object) Object
- func (o *Os) Environ(line string, args ...Object) Object
- func (o *Os) Exit(line string, args ...Object) Object
- func (o *Os) Expand(scope *Scope, line string, args ...Object) Object
- func (o *Os) ExpandEnv(line string, args ...Object) Object
- func (o *Os) Getenv(line string, args ...Object) Object
- func (o *Os) Getwd(line string, args ...Object) Object
- func (o *Os) Hostname(line string, args ...Object) Object
- func (o *Os) Inspect() string
- func (o *Os) IsExist(line string, args ...Object) Object
- func (o *Os) Link(line string, args ...Object) Object
- func (o *Os) Mkdir(line string, args ...Object) Object
- func (o *Os) MkdirAll(line string, args ...Object) Object
- func (o *Os) Readlink(line string, args ...Object) Object
- func (o *Os) Remove(line string, args ...Object) Object
- func (o *Os) RemoveAll(line string, args ...Object) Object
- func (o *Os) Rename(line string, args ...Object) Object
- func (o *Os) RunCmd(line string, args ...Object) Object
- func (o *Os) Setenv(line string, args ...Object) Object
- func (o *Os) Stat(line string, args ...Object) Object
- func (o *Os) TempDir(line string, args ...Object) Object
- func (o *Os) Truncate(line string, args ...Object) Object
- func (o *Os) Type() ObjectType
- func (o *Os) Unsetenv(line string, args ...Object) Object
- type PipeObj
- func (p *PipeObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (p *PipeObj) Inspect() string
- func (p *PipeObj) Read(line string, args ...Object) Object
- func (p *PipeObj) ReadClose(line string, args ...Object) Object
- func (p *PipeObj) Type() ObjectType
- func (p *PipeObj) Write(line string, args ...Object) Object
- func (p *PipeObj) WriteClose(line string, args ...Object) Object
- type PropertyInfo
- func (p *PropertyInfo) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (p *PropertyInfo) GetAnnotations(line string, scope *Scope, args ...Object) Object
- func (p *PropertyInfo) GetName(line string, args ...Object) Object
- func (p *PropertyInfo) Inspect() string
- func (p *PropertyInfo) Type() ObjectType
- func (p *PropertyInfo) Value(line string, args ...Object) Object
- type Query
- type RegEx
- func (re *RegEx) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (re *RegEx) FindAllString(line string, args ...Object) Object
- func (re *RegEx) FindAllStringIndex(line string, args ...Object) Object
- func (re *RegEx) FindAllStringSubmatch(line string, args ...Object) Object
- func (re *RegEx) FindAllStringSubmatchIndex(line string, args ...Object) Object
- func (re *RegEx) FindString(line string, args ...Object) Object
- func (re *RegEx) FindStringIndex(line string, args ...Object) Object
- func (re *RegEx) FindStringSubmatch(line string, args ...Object) Object
- func (re *RegEx) FindStringSubmatchIndex(line string, args ...Object) Object
- func (re *RegEx) Inspect() string
- func (re *RegEx) MarshalJSON() ([]byte, error)
- func (re *RegEx) Match(line string, args ...Object) Object
- func (re *RegEx) NumSubexp(line string, args ...Object) Object
- func (re *RegEx) Replace(line string, args ...Object) Object
- func (re *RegEx) ReplaceAllLiteralString(line string, args ...Object) Object
- func (re *RegEx) ReplaceAllStringFunc(line string, scope *Scope, args ...Object) Object
- func (re *RegEx) ReplaceFirstString(line string, args ...Object) Object
- func (re *RegEx) Split(line string, args ...Object) Object
- func (re *RegEx) String(line string, args ...Object) Object
- func (re *RegEx) SubexpNames(line string, args ...Object) Object
- func (re *RegEx) Type() ObjectType
- func (re *RegEx) UnmarshalJSON(b []byte) error
- type RegExpObj
- func (rex *RegExpObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (rex *RegExpObj) Compile(line string, args ...Object) Object
- func (rex *RegExpObj) CompilePOSIX(line string, args ...Object) Object
- func (rex *RegExpObj) FindAllString(line string, args ...Object) Object
- func (rex *RegExpObj) FindAllStringIndex(line string, args ...Object) Object
- func (rex *RegExpObj) FindAllStringSubmatch(line string, args ...Object) Object
- func (rex *RegExpObj) FindAllStringSubmatchIndex(line string, args ...Object) Object
- func (rex *RegExpObj) FindString(line string, args ...Object) Object
- func (rex *RegExpObj) FindStringIndex(line string, args ...Object) Object
- func (rex *RegExpObj) FindStringSubmatch(line string, args ...Object) Object
- func (rex *RegExpObj) FindStringSubmatchIndex(line string, args ...Object) Object
- func (rex *RegExpObj) Inspect() string
- func (rex *RegExpObj) MatchString(line string, args ...Object) Object
- func (rex *RegExpObj) MustCompile(line string, args ...Object) Object
- func (rex *RegExpObj) MustCompilePOSIX(line string, args ...Object) Object
- func (rex *RegExpObj) NumSubexp(line string, args ...Object) Object
- func (rex *RegExpObj) ReplaceAllLiteralString(line string, args ...Object) Object
- func (rex *RegExpObj) ReplaceAllString(line string, args ...Object) Object
- func (rex *RegExpObj) ReplaceAllStringFunc(line string, scope *Scope, args ...Object) Object
- func (rex *RegExpObj) Split(line string, args ...Object) Object
- func (rex *RegExpObj) String(line string, args ...Object) Object
- func (rex *RegExpObj) SubexpNames(line string, args ...Object) Object
- func (rex *RegExpObj) Type() ObjectType
- type ReturnValue
- type Route
- func (r *Route) BuildOnly() *Route
- func (r *Route) BuildVarsFunc(f BuildVarsFunc) *Route
- func (r *Route) GetError() error
- func (r *Route) GetHandler() http.Handler
- func (r *Route) GetHostTemplate() (string, error)
- func (r *Route) GetMethods() ([]string, error)
- func (r *Route) GetName() string
- func (r *Route) GetPathRegexp() (string, error)
- func (r *Route) GetPathTemplate() (string, error)
- func (r *Route) GetQueriesRegexp() ([]string, error)
- func (r *Route) GetQueriesTemplates() ([]string, error)
- func (r *Route) Handler(handler http.Handler) *Route
- func (r *Route) HandlerFunc(f func(http.ResponseWriter, *http.Request)) *Route
- func (r *Route) Headers(pairs ...string) *Route
- func (r *Route) HeadersRegexp(pairs ...string) *Route
- func (r *Route) Host(tpl string) *Route
- func (r *Route) Match(req *http.Request, match *RouteMatch) bool
- func (r *Route) MatcherFunc(f MatcherFunc) *Route
- func (r *Route) Methods(methods ...string) *Route
- func (r *Route) Name(name string) *Route
- func (r *Route) Path(tpl string) *Route
- func (r *Route) PathPrefix(tpl string) *Route
- func (r *Route) Queries(pairs ...string) *Route
- func (r *Route) Schemes(schemes ...string) *Route
- func (r *Route) SkipClean() bool
- func (r *Route) Subrouter() *Router
- func (r *Route) URL(pairs ...string) (*url.URL, error)
- func (r *Route) URLHost(pairs ...string) (*url.URL, error)
- func (r *Route) URLPath(pairs ...string) (*url.URL, error)
- type RouteMatch
- type Router
- func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route
- func (r *Router) Get(name string) *Route
- func (r *Router) GetRoute(name string) *Route
- func (r *Router) Handle(path string, handler http.Handler) *Route
- func (r *Router) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *Route
- func (r *Router) Headers(pairs ...string) *Route
- func (r *Router) Host(tpl string) *Route
- func (r *Router) Match(req *http.Request, match *RouteMatch) bool
- func (r *Router) MatcherFunc(f MatcherFunc) *Route
- func (r *Router) Methods(methods ...string) *Route
- func (r *Router) Name(name string) *Route
- func (r *Router) NewRoute() *Route
- func (r *Router) Path(tpl string) *Route
- func (r *Router) PathPrefix(tpl string) *Route
- func (r *Router) Queries(pairs ...string) *Route
- func (r *Router) Schemes(schemes ...string) *Route
- func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (r *Router) SkipClean(value bool) *Router
- func (r *Router) StrictSlash(value bool) *Router
- func (r *Router) Use(mwf ...MiddlewareFunc)
- func (r *Router) UseEncodedPath() *Router
- func (r *Router) Walk(walkFn WalkFunc) error
- type Scope
- func (s *Scope) CallerFrame() *CallFrame
- func (s *Scope) CurrentFrame() *CallFrame
- func (s *Scope) DebugPrint(indent string)
- func (s *Scope) Get(name string) (Object, bool)
- func (s *Scope) GetKeys() []string
- func (s *Scope) IsReadOnly(name string) bool
- func (s *Scope) Reset(name string, val Object) (Object, bool)
- func (s *Scope) Set(name string, val Object) Object
- func (s *Scope) SetConst(name string, val Object) Object
- type ServiceObj
- func (s *ServiceObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *ServiceObj) HandleFunc(line string, scope *Scope, args ...Object) Object
- func (s *ServiceObj) Headers(line string, args ...Object) Object
- func (s *ServiceObj) Host(line string, args ...Object) Object
- func (s *ServiceObj) Inspect() string
- func (s *ServiceObj) Methods(line string, args ...Object) Object
- func (s *ServiceObj) Queries(line string, args ...Object) Object
- func (s *ServiceObj) Run(line string, args ...Object) Object
- func (s *ServiceObj) Schemes(line string, args ...Object) Object
- func (s *ServiceObj) Type() ObjectType
- type SortObj
- func (s *SortObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *SortObj) FloatsAreSorted(line string, args ...Object) Object
- func (s *SortObj) Inspect() string
- func (s *SortObj) IntsAreSorted(line string, args ...Object) Object
- func (s *SortObj) SortFloats(line string, args ...Object) Object
- func (s *SortObj) SortInts(line string, args ...Object) Object
- func (s *SortObj) SortStrings(line string, args ...Object) Object
- func (s *SortObj) SortUInts(line string, args ...Object) Object
- func (s *SortObj) StringsAreSorted(line string, args ...Object) Object
- func (s *SortObj) Type() ObjectType
- func (s *SortObj) UIntsAreSorted(line string, args ...Object) Object
- type SqlObject
- func (s *SqlObject) Begin(line string, args ...Object) Object
- func (s *SqlObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *SqlObject) Close(line string, args ...Object) Object
- func (s *SqlObject) Exec(line string, args ...Object) Object
- func (s *SqlObject) Inspect() string
- func (s *SqlObject) Ping(line string, args ...Object) Object
- func (s *SqlObject) Prepare(line string, args ...Object) Object
- func (s *SqlObject) Query(line string, args ...Object) Object
- func (s *SqlObject) QueryRow(line string, args ...Object) Object
- func (s *SqlObject) SetMaxIdleConns(line string, args ...Object) Object
- func (s *SqlObject) SetMaxOpenConns(line string, args ...Object) Object
- func (s *SqlObject) Type() ObjectType
- type SqlsObject
- type String
- func (s *String) Atoi(line string, args ...Object) Object
- func (s *String) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *String) Chomp(line string, args ...Object) Object
- func (s *String) Compare(line string, args ...Object) Object
- func (s *String) Contains(line string, args ...Object) Object
- func (s *String) ContainsAny(line string, args ...Object) Object
- func (s *String) Count(line string, args ...Object) Object
- func (s *String) Fields(line string, args ...Object) Object
- func (s *String) Find(line string, args ...Object) Object
- func (s *String) HasPrefix(line string, args ...Object) Object
- func (s *String) HasSuffix(line string, args ...Object) Object
- func (s *String) Hash(line string, args ...Object) Object
- func (s *String) HashKey() HashKey
- func (s *String) Inspect() string
- func (s *String) IsEmpty(line string, args ...Object) Object
- func (s *String) IsValid(line string, args ...Object) Object
- func (s *String) Itoa(line string, args ...Object) Object
- func (s *String) LastIndex(line string, args ...Object) Object
- func (s *String) Len(line string, args ...Object) Object
- func (s *String) Lower(line string, args ...Object) Object
- func (s *String) MarshalJSON() ([]byte, error)
- func (s *String) ParseBool(line string, args ...Object) Object
- func (s *String) ParseFloat(line string, args ...Object) Object
- func (s *String) ParseInt(line string, args ...Object) Object
- func (s *String) ParseUInt(line string, args ...Object) Object
- func (s *String) Repeat(line string, args ...Object) Object
- func (s *String) Replace(line string, args ...Object) Object
- func (s *String) Reverse(line string, args ...Object) Object
- func (s *String) Scan(value interface{}) error
- func (s *String) Set(line string, args ...Object) Object
- func (s *String) SetValid(line string, args ...Object) Object
- func (s *String) Split(line string, args ...Object) Object
- func (s *String) SubStr(line string, args ...Object) Object
- func (s *String) Title(line string, args ...Object) Object
- func (s *String) Trim(line string, args ...Object) Object
- func (s *String) TrimLeft(line string, args ...Object) Object
- func (s *String) TrimPrefix(line string, args ...Object) Object
- func (s *String) TrimRight(line string, args ...Object) Object
- func (s *String) TrimSuffix(line string, args ...Object) Object
- func (s *String) Type() ObjectType
- func (s *String) UnmarshalJSON(b []byte) error
- func (s *String) Upper(line string, args ...Object) Object
- func (s String) Value() (driver.Value, error)
- func (s *String) Write(line string, scope *Scope, args ...Object) Object
- func (s *String) WriteLine(line string, scope *Scope, args ...Object) Object
- type StringSlice
- type StringsObj
- func (s *StringsObj) Atoi(line string, args ...Object) Object
- func (s *StringsObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (s *StringsObj) Chomp(line string, args ...Object) Object
- func (s *StringsObj) Compare(line string, args ...Object) Object
- func (s *StringsObj) Contains(line string, args ...Object) Object
- func (s *StringsObj) ContainsAny(line string, args ...Object) Object
- func (s *StringsObj) Count(line string, args ...Object) Object
- func (s *StringsObj) Fields(line string, args ...Object) Object
- func (s *StringsObj) Find(line string, args ...Object) Object
- func (s *StringsObj) HasPrefix(line string, args ...Object) Object
- func (s *StringsObj) HasSuffix(line string, args ...Object) Object
- func (s *StringsObj) Hash(line string, args ...Object) Object
- func (s *StringsObj) Inspect() string
- func (s *StringsObj) IsEmpty(line string, args ...Object) Object
- func (s *StringsObj) Itoa(line string, args ...Object) Object
- func (s *StringsObj) Join(line string, args ...Object) Object
- func (s *StringsObj) LastIndex(line string, args ...Object) Object
- func (s *StringsObj) Len(line string, args ...Object) Object
- func (s *StringsObj) Lower(line string, args ...Object) Object
- func (s *StringsObj) ParseBool(line string, args ...Object) Object
- func (s *StringsObj) ParseFloat(line string, args ...Object) Object
- func (s *StringsObj) ParseInt(line string, args ...Object) Object
- func (s *StringsObj) ParseUInt(line string, args ...Object) Object
- func (s *StringsObj) Repeat(line string, args ...Object) Object
- func (s *StringsObj) Replace(line string, args ...Object) Object
- func (s *StringsObj) Reverse(line string, args ...Object) Object
- func (s *StringsObj) Split(line string, args ...Object) Object
- func (s *StringsObj) SubStr(line string, args ...Object) Object
- func (s *StringsObj) Title(line string, args ...Object) Object
- func (s *StringsObj) Trim(line string, args ...Object) Object
- func (s *StringsObj) TrimLeft(line string, args ...Object) Object
- func (s *StringsObj) TrimPrefix(line string, args ...Object) Object
- func (s *StringsObj) TrimRight(line string, args ...Object) Object
- func (s *StringsObj) TrimSuffix(line string, args ...Object) Object
- func (s *StringsObj) Type() ObjectType
- func (s *StringsObj) Upper(line string, args ...Object) Object
- func (s *StringsObj) Write(line string, scope *Scope, args ...Object) Object
- func (s *StringsObj) WriteLine(line string, scope *Scope, args ...Object) Object
- type Struct
- type SyncCondObj
- func (c *SyncCondObj) Broadcast(line string, args ...Object) Object
- func (c *SyncCondObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (c *SyncCondObj) Inspect() string
- func (c *SyncCondObj) Signal(line string, args ...Object) Object
- func (c *SyncCondObj) Type() ObjectType
- func (c *SyncCondObj) Wait(line string, args ...Object) Object
- type SyncMutexObj
- func (m *SyncMutexObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (m *SyncMutexObj) Inspect() string
- func (m *SyncMutexObj) Lock(line string, args ...Object) Object
- func (m *SyncMutexObj) Type() ObjectType
- func (m *SyncMutexObj) Unlock(line string, args ...Object) Object
- type SyncOnceObj
- type SyncRWMutexObj
- func (rwm *SyncRWMutexObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (rwm *SyncRWMutexObj) Inspect() string
- func (rwm *SyncRWMutexObj) Lock(line string, args ...Object) Object
- func (rwm *SyncRWMutexObj) RLock(line string, args ...Object) Object
- func (rwm *SyncRWMutexObj) RUnlock(line string, args ...Object) Object
- func (rwm *SyncRWMutexObj) Type() ObjectType
- func (rwm *SyncRWMutexObj) Unlock(line string, args ...Object) Object
- type SyncWaitGroupObj
- func (wg *SyncWaitGroupObj) Add(line string, args ...Object) Object
- func (wg *SyncWaitGroupObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (wg *SyncWaitGroupObj) Done(line string, args ...Object) Object
- func (wg *SyncWaitGroupObj) Inspect() string
- func (wg *SyncWaitGroupObj) Type() ObjectType
- func (wg *SyncWaitGroupObj) Wait(line string, args ...Object) Object
- type TCPListenerObject
- func (l *TCPListenerObject) AcceptTCP(line string, args ...Object) Object
- func (l *TCPListenerObject) Addr(line string, args ...Object) Object
- func (l *TCPListenerObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (l *TCPListenerObject) Close(line string, args ...Object) Object
- func (l *TCPListenerObject) Inspect() string
- func (l *TCPListenerObject) SetDeadline(line string, args ...Object) Object
- func (l *TCPListenerObject) Type() ObjectType
- type TcpConnObject
- func (t *TcpConnObject) Addr(line string, args ...Object) Object
- func (t *TcpConnObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (t *TcpConnObject) Close(line string, args ...Object) Object
- func (t *TcpConnObject) CloseRead(line string, args ...Object) Object
- func (t *TcpConnObject) CloseWrite(line string, args ...Object) Object
- func (t *TcpConnObject) Inspect() string
- func (t *TcpConnObject) Read(line string, args ...Object) Object
- func (t *TcpConnObject) Read2(line string, args ...Object) Object
- func (t *TcpConnObject) SetDeadline(line string, args ...Object) Object
- func (t *TcpConnObject) SetLinger(line string, args ...Object) Object
- func (t *TcpConnObject) SetNoDelay(line string, args ...Object) Object
- func (t *TcpConnObject) SetReadBuffer(line string, args ...Object) Object
- func (t *TcpConnObject) SetReadDeadline(line string, args ...Object) Object
- func (t *TcpConnObject) SetWriteBuffer(line string, args ...Object) Object
- func (t *TcpConnObject) SetWriteDeadline(line string, args ...Object) Object
- func (t *TcpConnObject) Type() ObjectType
- func (t *TcpConnObject) Write(line string, args ...Object) Object
- type TemplateObj
- func (t *TemplateObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (t *TemplateObj) Clone(line string, args ...Object) Object
- func (t *TemplateObj) DefinedTemplates(line string, args ...Object) Object
- func (t *TemplateObj) Delims(line string, args ...Object) Object
- func (t *TemplateObj) Execute(line string, args ...Object) Object
- func (t *TemplateObj) ExecuteTemplate(line string, args ...Object) Object
- func (t *TemplateObj) Funcs(line string, scope *Scope, args ...Object) Object
- func (t *TemplateObj) HTMLEscape(line string, args ...Object) Object
- func (t *TemplateObj) HTMLEscapeString(line string, args ...Object) Object
- func (t *TemplateObj) HTMLEscaper(line string, args ...Object) Object
- func (t *TemplateObj) Inspect() string
- func (t *TemplateObj) JSEscape(line string, args ...Object) Object
- func (t *TemplateObj) JSEscapeString(line string, args ...Object) Object
- func (t *TemplateObj) JSEscaper(line string, args ...Object) Object
- func (t *TemplateObj) Lookup(line string, args ...Object) Object
- func (t *TemplateObj) Name(line string, args ...Object) Object
- func (t *TemplateObj) New(line string, args ...Object) Object
- func (t *TemplateObj) NewHtml(line string, args ...Object) Object
- func (t *TemplateObj) NewText(line string, args ...Object) Object
- func (t *TemplateObj) Option(line string, args ...Object) Object
- func (t *TemplateObj) Parse(line string, args ...Object) Object
- func (t *TemplateObj) ParseFiles(line string, args ...Object) Object
- func (t *TemplateObj) ParseGlob(line string, args ...Object) Object
- func (t *TemplateObj) ParseHtmlFiles(line string, args ...Object) Object
- func (t *TemplateObj) ParseHtmlGlob(line string, args ...Object) Object
- func (t *TemplateObj) ParseTextFiles(line string, args ...Object) Object
- func (t *TemplateObj) ParseTextGlob(line string, args ...Object) Object
- func (t *TemplateObj) Templates(line string, args ...Object) Object
- func (t *TemplateObj) Type() ObjectType
- func (t *TemplateObj) URLQueryEscaper(line string, args ...Object) Object
- type Throw
- type Throwable
- type TimeObj
- func (t *TimeObj) Add(line string, args ...Object) Object
- func (t *TimeObj) AddDate(line string, args ...Object) Object
- func (t *TimeObj) After(line string, args ...Object) Object
- func (t *TimeObj) AppendFormat(line string, args ...Object) Object
- func (t *TimeObj) Before(line string, args ...Object) Object
- func (t *TimeObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (t *TimeObj) Clock(line string, args ...Object) Object
- func (t *TimeObj) Date(line string, args ...Object) Object
- func (t *TimeObj) Day(line string, args ...Object) Object
- func (t *TimeObj) Equal(line string, args ...Object) Object
- func (t *TimeObj) Format(line string, args ...Object) Object
- func (t *TimeObj) FromEpoch(line string, args ...Object) Object
- func (t *TimeObj) FullYear(line string, args ...Object) Object
- func (t *TimeObj) Hours(line string, args ...Object) Object
- func (t *TimeObj) ISOWeek(line string, args ...Object) Object
- func (t *TimeObj) Inspect() string
- func (t *TimeObj) IsZero(line string, args ...Object) Object
- func (t *TimeObj) Local(line string, args ...Object) Object
- func (t *TimeObj) MarshalJSON() ([]byte, error)
- func (t *TimeObj) Milliseconds(line string, args ...Object) Object
- func (t *TimeObj) Minutes(line string, args ...Object) Object
- func (t *TimeObj) Month(line string, args ...Object) Object
- func (t *TimeObj) Parse(line string, args ...Object) Object
- func (t *TimeObj) Round(line string, args ...Object) Object
- func (t *TimeObj) Scan(value interface{}) error
- func (t *TimeObj) Seconds(line string, args ...Object) Object
- func (t *TimeObj) SetValid(line string, args ...Object) Object
- func (t *TimeObj) Sleep(line string, args ...Object) Object
- func (t *TimeObj) Strftime(line string, args ...Object) Object
- func (t *TimeObj) Sub(line string, args ...Object) Object
- func (t *TimeObj) ToDateStr(line string, args ...Object) Object
- func (t *TimeObj) ToEpoch(line string, args ...Object) Object
- func (t *TimeObj) ToGMTStr(line string, args ...Object) Object
- func (t *TimeObj) ToISOStr(line string, args ...Object) Object
- func (t *TimeObj) ToStr(line string, args ...Object) Object
- func (t *TimeObj) ToTimeStr(line string, args ...Object) Object
- func (t *TimeObj) ToUTCStr(line string, args ...Object) Object
- func (t *TimeObj) Truncate(line string, args ...Object) Object
- func (t *TimeObj) Type() ObjectType
- func (t *TimeObj) UTC(line string, args ...Object) Object
- func (t *TimeObj) Unix(line string, args ...Object) Object
- func (t *TimeObj) UnixLocal(line string, args ...Object) Object
- func (t *TimeObj) UnixLocalNano(line string, args ...Object) Object
- func (t *TimeObj) UnixNano(line string, args ...Object) Object
- func (t *TimeObj) UnmarshalJSON(buf []byte) error
- func (t TimeObj) Value() (time.Time, bool, error)
- func (t *TimeObj) WeekDay(line string, args ...Object) Object
- func (t *TimeObj) Year(line string, args ...Object) Object
- func (t *TimeObj) YearDay(line string, args ...Object) Object
- type Tuple
- func (t *Tuple) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (t *Tuple) Count(line string, args ...Object) Object
- func (t *Tuple) Empty(line string, args ...Object) Object
- func (t *Tuple) Filter(line string, scope *Scope, args ...Object) Object
- func (t *Tuple) First(line string, args ...Object) Object
- func (t *Tuple) Get(line string, args ...Object) Object
- func (t *Tuple) HashKey() HashKey
- func (t *Tuple) Index(line string, args ...Object) Object
- func (t *Tuple) Inspect() string
- func (t *Tuple) Last(line string, args ...Object) Object
- func (t *Tuple) Len(line string, args ...Object) Object
- func (t *Tuple) Map(line string, scope *Scope, args ...Object) Object
- func (t *Tuple) MarshalJSON() ([]byte, error)
- func (t *Tuple) Merge(line string, args ...Object) Object
- func (t *Tuple) Reduce(line string, scope *Scope, args ...Object) Object
- func (t *Tuple) Tail(line string, args ...Object) Object
- func (t *Tuple) Type() ObjectType
- type UIntSlice
- type UInteger
- func (i *UInteger) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (i *UInteger) Downto(line string, args ...Object) Object
- func (u *UInteger) HashKey() HashKey
- func (i *UInteger) Inspect() string
- func (i *UInteger) IsEven(line string, args ...Object) Object
- func (i *UInteger) IsOdd(line string, args ...Object) Object
- func (i *UInteger) IsValid(line string, args ...Object) Object
- func (i *UInteger) MarshalJSON() ([]byte, error)
- func (i *UInteger) Next(line string, args ...Object) Object
- func (i *UInteger) Prev(line string, args ...Object) Object
- func (i *UInteger) Scan(value interface{}) error
- func (i *UInteger) SetValid(line string, args ...Object) Object
- func (i *UInteger) Str(line string, args ...Object) Object
- func (i *UInteger) Type() ObjectType
- func (i *UInteger) UnmarshalJSON(b []byte) error
- func (i *UInteger) Upto(line string, args ...Object) Object
- func (i UInteger) Value() (driver.Value, error)
- type UdpConnObject
- func (u *UdpConnObject) Addr(line string, args ...Object) Object
- func (u *UdpConnObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (u *UdpConnObject) Close(line string, args ...Object) Object
- func (u *UdpConnObject) Inspect() string
- func (u *UdpConnObject) Read(line string, args ...Object) Object
- func (u *UdpConnObject) SetDeadline(line string, args ...Object) Object
- func (u *UdpConnObject) SetReadBuffer(line string, args ...Object) Object
- func (u *UdpConnObject) SetReadDeadline(line string, args ...Object) Object
- func (u *UdpConnObject) SetWriteBuffer(line string, args ...Object) Object
- func (u *UdpConnObject) SetWriteDeadline(line string, args ...Object) Object
- func (u *UdpConnObject) Type() ObjectType
- func (u *UdpConnObject) Write(line string, args ...Object) Object
- type UnicodeObj
- func (u *UnicodeObj) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (u *UnicodeObj) Inspect() string
- func (u *UnicodeObj) IsControl(line string, args ...Object) Object
- func (u *UnicodeObj) IsDigit(line string, args ...Object) Object
- func (u *UnicodeObj) IsGraphic(line string, args ...Object) Object
- func (u *UnicodeObj) IsLetter(line string, args ...Object) Object
- func (u *UnicodeObj) IsLower(line string, args ...Object) Object
- func (u *UnicodeObj) IsMark(line string, args ...Object) Object
- func (u *UnicodeObj) IsNumber(line string, args ...Object) Object
- func (u *UnicodeObj) IsPrint(line string, args ...Object) Object
- func (u *UnicodeObj) IsPunct(line string, args ...Object) Object
- func (u *UnicodeObj) IsSpace(line string, args ...Object) Object
- func (u *UnicodeObj) IsSymbol(line string, args ...Object) Object
- func (u *UnicodeObj) IsTitle(line string, args ...Object) Object
- func (u *UnicodeObj) IsUpper(line string, args ...Object) Object
- func (u *UnicodeObj) Type() ObjectType
- type UnixConnObject
- func (u *UnixConnObject) Addr(line string, args ...Object) Object
- func (u *UnixConnObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (u *UnixConnObject) Close(line string, args ...Object) Object
- func (u *UnixConnObject) CloseRead(line string, args ...Object) Object
- func (u *UnixConnObject) CloseWrite(line string, args ...Object) Object
- func (u *UnixConnObject) Inspect() string
- func (u *UnixConnObject) Read(line string, args ...Object) Object
- func (u *UnixConnObject) SetDeadline(line string, args ...Object) Object
- func (u *UnixConnObject) SetReadBuffer(line string, args ...Object) Object
- func (u *UnixConnObject) SetReadDeadline(line string, args ...Object) Object
- func (u *UnixConnObject) SetWriteBuffer(line string, args ...Object) Object
- func (u *UnixConnObject) SetWriteDeadline(line string, args ...Object) Object
- func (u *UnixConnObject) Type() ObjectType
- func (u *UnixConnObject) Write(line string, args ...Object) Object
- type UnixListenerObject
- func (l *UnixListenerObject) AcceptUnix(line string, args ...Object) Object
- func (l *UnixListenerObject) Addr(line string, args ...Object) Object
- func (l *UnixListenerObject) CallMethod(line string, scope *Scope, method string, args ...Object) Object
- func (l *UnixListenerObject) Close(line string, args ...Object) Object
- func (l *UnixListenerObject) Inspect() string
- func (l *UnixListenerObject) SetDeadline(line string, args ...Object) Object
- func (l *UnixListenerObject) Type() ObjectType
- type WalkFunc
- type Writable
Constants ¶
const ( CLASS_OBJ = "CLASS_OBJ" INSTANCE_OBJ = "INSTANCE_OBJ" METHODINFO_OBJ = "METHODINFO_OBJ" PROPERTYINFO_OBJ = "PROPERTYINFO_OBJ" )
const ( ADD_BP = iota DEL_BP )
const ( PREFIXOP int INFIXOP POSTFIXOP MOD_ASSIGNOP UNKNOWNIDENT UNKNOWNIDENTEX NOMETHODERROR NOMETHODERROREX NOINDEXERROR KEYERROR INDEXERROR SLICEERROR ARGUMENTERROR INPUTERROR RTERROR PARAMTYPEERROR INLENERR INVALIDARG DIVIDEBYZERO THROWERROR THROWNOTHANDLED GREPMAPNOTITERABLE NOTITERABLE RANGETYPEERROR DEFERERROR SPAWNERROR ASSERTIONERROR // STDLIBERROR NULLABLEERROR JSONERROR DBSCANERROR FUNCCALLBACKERROR FILEMODEERROR FILEOPENERROR NOTCLASSERROR PARENTNOTDECL CLSNOTDEFINE CLSMEMBERPRIVATE CLSCALLPRIVATE PROPERTYUSEERROR MEMBERUSEERROR INDEXERUSEERROR INDEXERTYPEERROR INDEXERSTATICERROR INDEXNOTFOUNDERROR CALLNONSTATICERROR CLASSCATEGORYERROR CLASSCREATEERROR PARENTNOTANNOTATION OVERRIDEERROR METAOPERATORERROR SERVICENOURLERROR CONSTNOTASSIGNERROR DIAMONDOPERERROR NAMENOTEXPORTED IMPORTERROR GENERICERROR )
constants for error types
const ( SKIP_DIR = 1 FILEPATH_OBJ = "FILEPATH_OBJ" )
const ( HTTP_OBJ = "HTTP_OBJ" HTTPCLIENT_OBJ = "HTTPCLIENT_OBJ" HTTPSERVER_OBJ = "HTTPSERVER_OBJ" HTTPRESPONSE_OBJ = "HTTPRESPONSE_OBJ" HTTPREQUEST_OBJ = "HTTPREQUEST_OBJ" HTTPRESPONSEWRITER_OBJ = "HTTPRESPONSEWRITER_OBJ" HTTPHEADER_OBJ = "HTTPHEADER_OBJ" )
const ( LIST_OBJ = "LIST_OBJ" LISTELEM_OBJ = "LISTELEM_OBJ" )
const ( TCPCONN_OBJ = "TCP_CONN_OBJ" TCPLISTENER_OBJ = "TCP_LISTENER_OBJ" UDPCONN_OBJ = "UDP_CONN_OBJ" UNIXCONN_OBJ = "UNIX_CONN_OBJ" UNIXLISTENER_OBJ = "UNIX_LISTENER_OBJ" )
const ( UTC = 0 LOCAL = 1 INTEGER_OBJ = "INTEGER" UINTEGER_OBJ = "UINTEGER" FLOAT_OBJ = "FLOAT" BOOLEAN_OBJ = "BOOLEAN" RETURN_VALUE_OBJ = "RETURN_VALUE" BREAK_OBJ = "BREAK" CONTINUE_OBJ = "CONTINUE" ERROR_OBJ = "ERROR" FUNCTION_OBJ = "FUNCTION" STRING_OBJ = "STRING" BUILTIN_OBJ = "BUILTIN" ARRAY_OBJ = "ARRAY" TUPLE_OBJ = "TUPLE" HASH_OBJ = "HASH" IMPORTED_OBJ = "IMPORT" STRUCT_OBJ = "STRUCT" ENUM_OBJ = "ENUM" FILE_OBJ = "FILE" REGEX_OBJ = "REGEX" CHANNEL_OBJ = "CHANNEL" NIL_OBJ = "NIL_OBJ" GO_OBJ = "GO_OBJ" GFO_OBJ = "GFO_OBJ" THROW_OBJ = "THROW" )
const ( DBSQL_OBJ = "DBSQL_OBJ" //sql object DBRESULT_OBJ = "DBRESULT_OBJ" //result object DBROW_OBJ = "DBROW_OBJ" //row object DBROWS_OBJ = "DBROWS_OBJ" //rows object DBSTMT_OBJ = "DBSTMT_OBJ" //statement object DBTX_OBJ = "DBTX_OBJ" //transaction object )
const ( SYNCCOND_OBJ = "SYNCCOND_OBJ" SYNCONCE_OBJ = "SYNCONCE_OBJ" SYNCMUTEX_OBJ = "SYNCMUTEX_OBJ" SYNCRWMUTEX_OBJ = "SYNCRWMUTEX_OBJ" SYNCWAITGROUP_OBJ = "SYNCWAITGROUP_OBJ" )
const ( TEMPLATE_OBJ = "TEMPLATE_OBJ" T_TEXT = 0 T_HTML = 1 )
const BUILTINMETHOD_OBJ = "BUILTINMETHOD_OBJ"
const (
CSV_OBJ = "CSV_OBJ"
)
const DECIMAL_OBJ = "DECIMAL_OBJ"
const FILEINFO_OBJ = "FILEINFO_OBJ"
const (
FLAG_OBJ = "FLAG_OBJ"
)
const (
FMT_OBJ = "FMT_OBJ"
)
const GROUP_OBJ = "GROUP_OBJ"
const (
IOUTIL_OBJ = "IOUTIL_OBJ"
)
const (
JSON_OBJ = "JSON_OBJ"
)
const KEYVALUE_OBJ = "KEYVALUE_OBJ"
const LINQ_OBJ = "LINQ_OBJ"
const (
LOGGER_OBJ = "LOGGER_OBJ"
)
const (
LineStep = 5
)
const (
MATH_OBJ = "MATH_OBJ"
)
const MISS_THRESHOLD = 2
const (
NET_OBJ = "NET_OBJ"
)
Net Object
const (
OPTIONAL_OBJ = "OPTIONAL_OBJ"
)
const (
OS_OBJ = "OS_OBJ"
)
const PIPE_OBJ = "PIPE_OBJ"
const (
REGEXP_OBJ = "REGEXP_OBJ"
)
REGEXP OBJECT
const (
SERVICE_OBJ = "SERVICE_OBJ"
)
const (
SORT_OBJ = "SORT_OBJ"
)
const (
SQL_OBJ = "SQL_OBJ"
)
const (
STRINGS_OBJ = "STRINGS_OBJ"
)
const ServiceHint = "* Running on %s (Press CTRL+C to quit)\n"
const (
TIME_OBJ = "TIME_OBJ"
)
const (
UNICODE_OBJ = "UNICODE_OBJ"
)
Variables ¶
var ( TRUE = &Boolean{Bool: true, Valid: true} FALSE = &Boolean{Bool: false, Valid: true} BREAK = &Break{} CONTINUE = &Continue{} NIL = &Nil{} EMPTY = &Optional{Value: NIL} )
var ( // ErrMethodMismatch is returned when the method in the request does not match // the method defined against the route. ErrMethodMismatch = errors.New("method is not allowed") // ErrNotFound is returned when no route match is found. ErrNotFound = errors.New("no matching route was found") )
============================================================================
BELOW IS THE SOURCE OF MUX(https://github.com/gorilla/mux) ============================================================================
var BASE_CLASS = &Class{ Name: "object", Parent: nil, Members: nil, Methods: map[string]ClassMethod{}, }
The base class of all classes in magpie
var BuiltinClasses = map[string]*Class{ "object": BASE_CLASS, "Override": OVERRIDE_ANNOCLASS, "NotNull": NOTNULL_ANNOCLASS, "NotEmpty": NOTEMPTY_ANNOCLASS, }
var DivisionPrecision = 16
DivisionPrecision is the number of decimal places in the result when it doesn't divide exactly.
Example:
d1 := decimal.NewFromFloat(2).Div(decimal.NewFromFloat(3) d1.String() // output: "0.6666666666666667" d2 := decimal.NewFromFloat(2).Div(decimal.NewFromFloat(30000) d2.String() // output: "0.0000666666666667" d3 := decimal.NewFromFloat(20000).Div(decimal.NewFromFloat(3) d3.String() // output: "6666.6666666666666667" decimal.DivisionPrecision = 3 d4 := decimal.NewFromFloat(2).Div(decimal.NewFromFloat(3) d4.String() // output: "0.667"
var GlobalMutex sync.RWMutex
var MarshalJSONWithoutQuotes = false
MarshalJSONWithoutQuotes should be set to true if you want the decimal to be JSON marshaled as a number, instead of as a string. WARNING: this is dangerous for decimals with many digits, since many JSON unmarshallers (ex: Javascript's) will unmarshal JSON numbers to IEEE 754 double-precision floating point numbers, which means you can potentially silently lose precision.
var MsgHandler *message.MessageHandler
var NOTEMPTY_ANNOCLASS = &Class{ Name: "NotEmpty", Parent: BASE_CLASS, IsAnnotation: true, }
Builtin @NotEmpty annotation class Asserts that the annotated string, tuple, map or array is not null or empty.
var NOTNULL_ANNOCLASS = &Class{ Name: "NotNull", Parent: BASE_CLASS, IsAnnotation: true, }
Builtin @NotNull annotation class The annotated element must not be {@code null}.
var OVERRIDE_ANNOCLASS = &Class{ Name: "Override", Parent: BASE_CLASS, IsAnnotation: true, }
Builtin @Override annotation class
var REPLColor bool
REPL with color support
var SkipRouter = errors.New("skip this router")
SkipRouter is used as a return value from WalkFuncs to indicate that the router that walk is about to descend down to should be skipped.
var Zero = NewDec(0, 1)
Zero constant, to make computations faster.
Functions ¶
func Distance ¶
The Levenshtein distance between two strings is defined as the minimum number of edits needed to transform one string into the other, with the allowable edit operations being insertion, deletion, or substitution of a single character http://en.wikipedia.org/wiki/Levenshtein_distance
This implemention is optimized to use O(min(m,n)) space. It is based on the optimized C version found here: http://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Levenshtein_distance#C
func Float64sAreSorted ¶
Float64sAreSorted tests whether a slice of float64s is sorted in ascending/descending order.
func InstanceOf ¶
func InstanceOf(className string, oi *ObjectInstance) bool
func IntsAreSorted ¶
IntsAreSorted tests whether a slice of ints is sorted in ascending/descending order.
func LoggingMiddleware ¶
Below code will cause panic(mainly request body handling)
func ObjectToValue ¶
Magpie language Object to go language Value.
func PanicToError ¶
func RegisterBuiltin ¶
func RegisterFunctions ¶
func RegisterVars ¶
func ServeService ¶
func SetGlobalObj ¶
func StringsAreSorted ¶
StringsAreSorted tests whether a slice of strings is sorted in ascending/descending order.
func TypoSuggestions ¶
func UIntsAreSorted ¶
UIntsAreSorted tests whether a slice of uints is sorted in ascending/descending order.
Types ¶
type Array ¶
type Array struct {
Members []Object
}
func (*Array) CallMethod ¶
func (*Array) Type ¶
func (a *Array) Type() ObjectType
func (*Array) UnmarshalJSON ¶
type Boolean ¶
type Boolean struct { Bool bool Valid bool //sometimes when a function fails, it will return `false`. If this happens, we also need to //know the error reason. The error message is stored in `OptionalMsg` OptionalMsg string }
func NewFalseObj ¶
func (*Boolean) CallMethod ¶
func (*Boolean) MarshalJSON ¶
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
func (*Boolean) UnmarshalJSON ¶
type Break ¶
type Break struct{}
func (*Break) CallMethod ¶
func (*Break) Type ¶
func (b *Break) Type() ObjectType
type BuildVarsFunc ¶
BuildVarsFunc is the function signature used by custom build variable functions (which can modify route variables before a route's URL is built).
type Builtin ¶
type Builtin struct {
Fn BuiltinFunc
}
func (*Builtin) CallMethod ¶
func (*Builtin) Type ¶
func (b *Builtin) Type() ObjectType
type BuiltinMethod ¶
type BuiltinMethod struct { Fn BuiltinMethodFunction Instance *ObjectInstance }
func MakeBuiltinMethod ¶
func MakeBuiltinMethod(fn BuiltinMethodFunction) *BuiltinMethod
func (*BuiltinMethod) CallMethod ¶
func (*BuiltinMethod) Inspect ¶
func (b *BuiltinMethod) Inspect() string
func (*BuiltinMethod) Type ¶
func (b *BuiltinMethod) Type() ObjectType
type BuiltinMethodFunction ¶
type BuiltinMethodFunction func(line string, self *ObjectInstance, scope *Scope, args ...Object) Object
type CallFrame ¶
type CallFrame struct { FuncScope *Scope CurrentCall *ast.CallExpression // currently calling function // contains filtered or unexported fields }
type ChanObject ¶
type ChanObject struct {
// contains filtered or unexported fields
}
func (*ChanObject) CallMethod ¶
func (*ChanObject) Inspect ¶
func (c *ChanObject) Inspect() string
func (*ChanObject) Type ¶
func (c *ChanObject) Type() ObjectType
type Class ¶
type Class struct { Name string Parent *Class Members []*ast.LetStatement Methods map[string]ClassMethod //BuiltinMethod or Function object Properties map[string]*ast.PropertyDeclStmt Scope *Scope IsAnnotation bool //true if the class is an annotation class }
func (*Class) CallMethod ¶
func (*Class) CheckMembers ¶
func (*Class) CheckMethods ¶
func (*Class) CheckProperties ¶
func (*Class) GetMethod ¶
func (c *Class) GetMethod(name string) ClassMethod
func (*Class) GetModifierLevel ¶
func (c *Class) GetModifierLevel(name string, kind ClassComponentKind) ast.ModifierLevel
func (*Class) GetProperty ¶
func (c *Class) GetProperty(name string) *ast.PropertyDeclStmt
func (*Class) IsAnnotationPresent ¶
func (*Class) IsStatic ¶
func (c *Class) IsStatic(val string, kind ClassComponentKind) bool
Check whether member, method or property is static or not.
func (*Class) Type ¶
func (c *Class) Type() ObjectType
type ClassComponentKind ¶
type ClassComponentKind byte
const ( ClassMemberKind ClassComponentKind = iota ClassMethodKind ClassPropertyKind )
type ClassMethod ¶
type ClassMethod interface { Object // contains filtered or unexported methods }
type Closeable ¶
type Closeable interface {
// contains filtered or unexported methods
}
Whether the Object is closable(mainly used for 'using' statement)
type Continue ¶
type Continue struct{}
func (*Continue) CallMethod ¶
func (*Continue) Type ¶
func (c *Continue) Type() ObjectType
type DbResultObject ¶
***************************************************************
DB Result Object
***************************************************************
func (*DbResultObject) CallMethod ¶
func (*DbResultObject) Inspect ¶
func (r *DbResultObject) Inspect() string
func (*DbResultObject) LastInsertId ¶
func (r *DbResultObject) LastInsertId(line string, args ...Object) Object
func (*DbResultObject) RowsAffected ¶
func (r *DbResultObject) RowsAffected(line string, args ...Object) Object
func (*DbResultObject) Type ¶
func (r *DbResultObject) Type() ObjectType
type DbRowObject ¶
***************************************************************
DB Row Object
***************************************************************
func (*DbRowObject) CallMethod ¶
func (*DbRowObject) Inspect ¶
func (r *DbRowObject) Inspect() string
func (*DbRowObject) Type ¶
func (r *DbRowObject) Type() ObjectType
type DbRowsObject ¶
***************************************************************
DB Rows Object
***************************************************************
func (*DbRowsObject) CallMethod ¶
func (*DbRowsObject) Inspect ¶
func (r *DbRowsObject) Inspect() string
func (*DbRowsObject) Type ¶
func (r *DbRowsObject) Type() ObjectType
type DbStmtObject ¶
***************************************************************
DB Statement Object
***************************************************************
func (*DbStmtObject) CallMethod ¶
func (*DbStmtObject) Inspect ¶
func (s *DbStmtObject) Inspect() string
func (*DbStmtObject) Type ¶
func (s *DbStmtObject) Type() ObjectType
type DbTxObject ¶
***************************************************************
DB Transaction object
***************************************************************
func (*DbTxObject) CallMethod ¶
func (*DbTxObject) Inspect ¶
func (t *DbTxObject) Inspect() string
func (*DbTxObject) Type ¶
func (t *DbTxObject) Type() ObjectType
type Debugger ¶
type Debugger struct { SrcLines []string SrcLinesCache map[string][]string DbgInfos []*DbgInfo Functions map[string]*ast.FunctionLiteral //for breakpoint Breakpoints map[string]bool //key: 'filename:line' Node ast.Node Scope *Scope Stepping bool // contains filtered or unexported fields }
var Dbg *Debugger
func NewDebugger ¶
func NewDebugger() *Debugger
func (*Debugger) CanStop ¶
Check if node can be stopped, some nodes cannot be stopped, e.g. 'InfixExpression', 'IntegerLiteral'
func (*Debugger) MessageReceived ¶
func (*Debugger) ProcessCommand ¶
func (d *Debugger) ProcessCommand()
func (*Debugger) SetDbgInfos ¶
func (*Debugger) SetFunctions ¶
func (d *Debugger) SetFunctions(functions map[string]*ast.FunctionLiteral)
func (*Debugger) ShowBanner ¶
func (d *Debugger) ShowBanner()
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
Decimal represents a fixed-point decimal. It is immutable. number = value * 10 ^ exp
func Max ¶
Max returns the largest Decimal that was passed in the arguments.
To call this function with an array, you must do:
Max(arr[0], arr[1:]...)
This makes it harder to accidentally call Max with 0 arguments.
func Min ¶
Min returns the smallest Decimal that was passed in the arguments.
To call this function with an array, you must do:
Min(arr[0], arr[1:]...)
This makes it harder to accidentally call Min with 0 arguments.
func NewFromFloat ¶
NewFromFloat converts a float64 to Decimal.
Example:
NewFromFloat(123.45678901234567).String() // output: "123.4567890123456" NewFromFloat(.00000000000000001).String() // output: "0.00000000000000001"
NOTE: this will panic on NaN, +/-inf
func NewFromFloatWithExponent ¶
NewFromFloatWithExponent converts a float64 to Decimal, with an arbitrary number of fractional digits.
Example:
NewFromFloatWithExponent(123.456, -2).String() // output: "123.46"
func NewFromInt ¶
func NewFromString ¶
NewFromString returns a new Decimal from a string representation.
Example:
d, err := NewFromString("-123.45") d2, err := NewFromString(".0001")
func NewFromUInt ¶
func (Decimal) Cmp ¶
Cmp compares the numbers represented by d and d2 and returns:
-1 if d < d2 0 if d == d2 +1 if d > d2
func (Decimal) Coefficient ¶
Coefficient returns the coefficient of the decimal. It is scaled by 10^Exponent()
func (Decimal) Div ¶
Div returns d / d2. If it doesn't divide exactly, the result will have DivisionPrecision digits after the decimal point.
func (Decimal) DivRound ¶
DivRound divides and rounds to a given precision i.e. to an integer multiple of 10^(-precision)
for a positive quotient digit 5 is rounded up, away from 0 if the quotient is negative then digit 5 is rounded down, away from 0
Note that precision<0 is allowed as input.
func (Decimal) Float64 ¶
Float64 returns the nearest float64 value for d and a bool indicating whether f represents d exactly. For more details, see the documentation for big.Rat.Float64
func (Decimal) GreaterThan ¶
GreaterThan (GT) returns true when d is greater than d2.
func (Decimal) GreaterThanOrEqual ¶
GreaterThanOrEqual (GTE) returns true when d is greater than or equal to d2.
func (Decimal) LessThanOrEqual ¶
LessThanOrEqual (LTE) returns true when d is less than or equal to d2.
func (Decimal) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Decimal) QuoRem ¶
QuoRem does divsion with remainder d.QuoRem(d2,precision) returns quotient q and remainder r such that
d = d2 * q + r, q an integer multiple of 10^(-precision) 0 <= r < abs(d2) * 10 ^(-precision) if d>=0 0 >= r > -abs(d2) * 10 ^(-precision) if d<0
Note that precision<0 is allowed as input.
func (Decimal) Round ¶
Round rounds the decimal to places decimal places. If places < 0, it will round the integer part to the nearest 10^(-places).
Example:
NewFromFloat(5.45).Round(1).String() // output: "5.5" NewFromFloat(545).Round(-1).String() // output: "550"
func (Decimal) String ¶
String returns the string representation of the decimal with the fixed point.
Example:
d := NewDec(-12345, -3) println(d.String())
Output:
-12.345
func (Decimal) StringFixed ¶
StringFixed returns a rounded fixed-point string with places digits after the decimal point.
Example:
NewFromFloat(0).StringFixed(2) // output: "0.00" NewFromFloat(0).StringFixed(0) // output: "0" NewFromFloat(5.45).StringFixed(0) // output: "5" NewFromFloat(5.45).StringFixed(1) // output: "5.5" NewFromFloat(5.45).StringFixed(2) // output: "5.45" NewFromFloat(5.45).StringFixed(3) // output: "5.450" NewFromFloat(545).StringFixed(-1) // output: "550"
func (Decimal) StringScaled ¶
StringScaled first scales the decimal then calls .String() on it. NOTE: buggy, unintuitive, and DEPRECATED! Use StringFixed instead.
func (Decimal) Truncate ¶
Truncate truncates off digits from the number, without rounding.
NOTE: precision is the last digit that will not be truncated (must be >= 0).
Example:
decimal.NewFromString("123.456").Truncate(2).String() // "123.45"
func (*Decimal) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type DecimalObj ¶
func NewDecimalObj ¶
func NewDecimalObj() *DecimalObj
func (*DecimalObj) CallMethod ¶
func (*DecimalObj) FromFloatWithExponent ¶
func (d *DecimalObj) FromFloatWithExponent(line string, args ...Object) Object
func (*DecimalObj) FromString ¶
func (d *DecimalObj) FromString(line string, args ...Object) Object
func (*DecimalObj) GetDivisionPrecision ¶
func (d *DecimalObj) GetDivisionPrecision(line string, args ...Object) Object
func (*DecimalObj) GetMarshalJSONWithoutQuotes ¶
func (d *DecimalObj) GetMarshalJSONWithoutQuotes(line string, args ...Object) Object
func (*DecimalObj) GreaterThan ¶
func (d *DecimalObj) GreaterThan(line string, args ...Object) Object
func (*DecimalObj) GreaterThanOrEqual ¶
func (d *DecimalObj) GreaterThanOrEqual(line string, args ...Object) Object
func (*DecimalObj) Inspect ¶
func (d *DecimalObj) Inspect() string
func (*DecimalObj) LessThanOrEqual ¶
func (d *DecimalObj) LessThanOrEqual(line string, args ...Object) Object
func (*DecimalObj) MarshalJSON ¶
func (d *DecimalObj) MarshalJSON() ([]byte, error)
Json marshal handling
func (*DecimalObj) Scan ¶
func (d *DecimalObj) Scan(value interface{}) error
Implements sql's Scanner Interface. So when calling sql.Rows.Scan(xxx), or sql.Row.Scan(xxx), we could pass this object to `Scan` method
func (*DecimalObj) SetDivisionPrecision ¶
func (d *DecimalObj) SetDivisionPrecision(line string, args ...Object) Object
func (*DecimalObj) SetMarshalJSONWithoutQuotes ¶
func (d *DecimalObj) SetMarshalJSONWithoutQuotes(line string, args ...Object) Object
func (*DecimalObj) StringFixed ¶
func (d *DecimalObj) StringFixed(line string, args ...Object) Object
func (*DecimalObj) StringScaled ¶
func (d *DecimalObj) StringScaled(line string, args ...Object) Object
func (*DecimalObj) Type ¶
func (d *DecimalObj) Type() ObjectType
func (*DecimalObj) UnmarshalJSON ¶
func (d *DecimalObj) UnmarshalJSON(b []byte) error
type Enum ¶
type Enum struct {
Scope *Scope
}
func (*Enum) CallMethod ¶
func (*Enum) Type ¶
func (e *Enum) Type() ObjectType
type FileInfoObj ¶
FileInfo Object
func (*FileInfoObj) CallMethod ¶
func (*FileInfoObj) Inspect ¶
func (fi *FileInfoObj) Inspect() string
func (*FileInfoObj) Type ¶
func (fi *FileInfoObj) Type() ObjectType
type FileObject ¶
type FileObject struct { File *os.File Name string Scanner *bufio.Scanner // contains filtered or unexported fields }
func (*FileObject) CallMethod ¶
func (*FileObject) IOWriter ¶
func (f *FileObject) IOWriter() io.Writer
func (*FileObject) Inspect ¶
func (f *FileObject) Inspect() string
func (*FileObject) Read ¶
func (f *FileObject) Read(line string, args ...Object) Object
Note: This method will return three different values:
- nil - with error message (ERROR)
- nil - without error message (EOF)
- string - read string
func (*FileObject) Type ¶
func (f *FileObject) Type() ObjectType
func (*FileObject) WriteString ¶
func (f *FileObject) WriteString(line string, args ...Object) Object
type FilePathObj ¶
type FilePathObj struct{}
func NewFilePathObj ¶
func NewFilePathObj() *FilePathObj
func (*FilePathObj) CallMethod ¶
func (*FilePathObj) EvalSymlinks ¶
func (f *FilePathObj) EvalSymlinks(line string, args ...Object) Object
func (*FilePathObj) Inspect ¶
func (f *FilePathObj) Inspect() string
func (*FilePathObj) Type ¶
func (f *FilePathObj) Type() ObjectType
func (*FilePathObj) VolumeName ¶
func (f *FilePathObj) VolumeName(line string, args ...Object) Object
type FlagObj ¶
type FlagObj struct {
// contains filtered or unexported fields
}
func NewFlagObj ¶
func NewFlagObj() *FlagObj
func (*FlagObj) CallMethod ¶
func (*FlagObj) Type ¶
func (f *FlagObj) Type() ObjectType
type Float ¶
func (*Float) CallMethod ¶
func (*Float) MarshalJSON ¶
func (*Float) Type ¶
func (f *Float) Type() ObjectType
func (*Float) UnmarshalJSON ¶
type Float64Slice ¶
Float64Slice attaches the methods of Interface to []float64, sorting in ascending/descending order.
func (Float64Slice) Len ¶
func (p Float64Slice) Len() int
func (Float64Slice) Less ¶
func (p Float64Slice) Less(i, j int) bool
func (Float64Slice) Swap ¶
func (p Float64Slice) Swap(i, j int)
type FmtObj ¶
type FmtObj struct { }
func (*FmtObj) CallMethod ¶
func (*FmtObj) Type ¶
func (f *FmtObj) Type() ObjectType
type Formatter ¶
type Formatter struct {
Obj Object
}
This `Formatter` struct is mainly used to encapsulate golang `fmt` package's `Formatter` interface. When we implement this interface, our `Object` could be directed passed to fmt.Printf(xxx)
type Function ¶
type Function struct { Literal *ast.FunctionLiteral Variadic bool Scope *Scope Instance *ObjectInstance //For use with class functions Annotations []*ObjectInstance Async bool }
func (*Function) CallMethod ¶
func (*Function) Type ¶
func (r *Function) Type() ObjectType
type GoFuncObject ¶
type GoFuncObject struct {
// contains filtered or unexported fields
}
wrapper for go functions
func NewGoFuncObject ¶
func NewGoFuncObject(fname string, fn interface{}) *GoFuncObject
func (*GoFuncObject) CallMethod ¶
func (*GoFuncObject) Inspect ¶
func (gfn *GoFuncObject) Inspect() string
func (*GoFuncObject) Type ¶
func (gfn *GoFuncObject) Type() ObjectType
type GoObject ¶
type GoObject struct {
// contains filtered or unexported fields
}
Wrapper for go object
func NewGoObject ¶
func NewGoObject(obj interface{}) *GoObject
func (*GoObject) CallMethod ¶
func (*GoObject) Type ¶
func (gobj *GoObject) Type() ObjectType
type GroupObj ¶
Group is a type that is used to store the result of GroupBy method.
func (*GroupObj) CallMethod ¶
func (*GroupObj) Type ¶
func (g *GroupObj) Type() ObjectType
type Hash ¶
func (*Hash) CallMethod ¶
func (*Hash) GetPath ¶
Code copied from "go-json-map" with modifications document = { one: { "two": { "three": [1, 2, 3,] }, "four": { "five": [ 11, 22, 33,] }, }, } prop = document.getPath("one.two.three[0]") println(prop) // prop => 1 prop= document.getPath("one.two.three") println(prop) // prop => [1, 2, 3]
func (*Hash) Type ¶
func (h *Hash) Type() ObjectType
func (*Hash) UnmarshalJSON ¶
type HashKey ¶
type HashKey struct { Type ObjectType Value uint64 }
type Hashable ¶
type Hashable interface {
HashKey() HashKey
}
Whether the Object can be used as hash's key
type HttpClient ¶
HTTP Client object
func (*HttpClient) CallMethod ¶
func (*HttpClient) Inspect ¶
func (h *HttpClient) Inspect() string
func (*HttpClient) Type ¶
func (h *HttpClient) Type() ObjectType
type HttpHeader ¶
HTTP Header object
func (*HttpHeader) CallMethod ¶
func (*HttpHeader) Inspect ¶
func (h *HttpHeader) Inspect() string
func (*HttpHeader) Type ¶
func (h *HttpHeader) Type() ObjectType
type HttpObj ¶
type HttpObj struct { }
func (*HttpObj) CallMethod ¶
func (*HttpObj) HandleFunc ¶
func (*HttpObj) ListenAndServe ¶
func (*HttpObj) Type ¶
func (h *HttpObj) Type() ObjectType
type HttpRequest ¶
HTTP Request object
func (*HttpRequest) CallMethod ¶
func (*HttpRequest) Inspect ¶
func (h *HttpRequest) Inspect() string
func (*HttpRequest) Type ¶
func (h *HttpRequest) Type() ObjectType
type HttpResponse ¶
HTTP Response object
func (*HttpResponse) CallMethod ¶
func (*HttpResponse) CloseBody ¶
func (h *HttpResponse) CloseBody(line string, args ...Object) Object
func (*HttpResponse) Inspect ¶
func (h *HttpResponse) Inspect() string
func (*HttpResponse) Type ¶
func (h *HttpResponse) Type() ObjectType
type HttpResponseWriter ¶
type HttpResponseWriter struct {
Writer http.ResponseWriter
}
HTTP ResponseWriter object
func (*HttpResponseWriter) CallMethod ¶
func (*HttpResponseWriter) Header ¶
func (h *HttpResponseWriter) Header(line string, args ...Object) Object
func (*HttpResponseWriter) IOWriter ¶
func (h *HttpResponseWriter) IOWriter() io.Writer
func (*HttpResponseWriter) Inspect ¶
func (h *HttpResponseWriter) Inspect() string
func (*HttpResponseWriter) Type ¶
func (h *HttpResponseWriter) Type() ObjectType
func (*HttpResponseWriter) Write ¶
func (h *HttpResponseWriter) Write(line string, args ...Object) Object
func (*HttpResponseWriter) WriteHeader ¶
func (h *HttpResponseWriter) WriteHeader(line string, args ...Object) Object
type HttpServer ¶
HTTP Server object
func (*HttpServer) CallMethod ¶
func (*HttpServer) Inspect ¶
func (h *HttpServer) Inspect() string
func (*HttpServer) ListenAndServe ¶
func (h *HttpServer) ListenAndServe(line string, args ...Object) Object
func (*HttpServer) SetKeepAlivesEnabled ¶
func (h *HttpServer) SetKeepAlivesEnabled(line string, args ...Object) Object
func (*HttpServer) SetMaxHeaderBytes ¶
func (h *HttpServer) SetMaxHeaderBytes(line string, args ...Object) Object
func (*HttpServer) SetReadTimeout ¶
func (h *HttpServer) SetReadTimeout(line string, args ...Object) Object
func (*HttpServer) SetWriteTimeout ¶
func (h *HttpServer) SetWriteTimeout(line string, args ...Object) Object
func (*HttpServer) Type ¶
func (h *HttpServer) Type() ObjectType
type IOUtilObj ¶
type IOUtilObj struct{}
func (*IOUtilObj) CallMethod ¶
func (*IOUtilObj) Type ¶
func (i *IOUtilObj) Type() ObjectType
type ImportedObject ¶
func (*ImportedObject) CallMethod ¶
func (*ImportedObject) Inspect ¶
func (io *ImportedObject) Inspect() string
func (*ImportedObject) Type ¶
func (io *ImportedObject) Type() ObjectType
type IntSlice ¶
IntSlice attaches the methods of Interface to []int, sorting in ascending/descending order.
type Integer ¶
func NewInteger ¶
Returns a valid Integer Object, that is Valid=true
func (*Integer) CallMethod ¶
func (*Integer) Scan ¶
Implements sql's Scanner Interface. So when calling sql.Rows.Scan(xxx), or sql.Row.Scan(xxx), we could pass this object to `Scan` method
func (*Integer) Type ¶
func (i *Integer) Type() ObjectType
func (*Integer) UnmarshalJSON ¶
type Interpolable ¶
type Interpolable interface {
Interpolate(scope *Scope)
}
type InterpolatedString ¶
type InterpolatedString struct { String *String RawValue string Expressions map[byte]ast.Expression }
func (*InterpolatedString) CallMethod ¶
func (*InterpolatedString) Inspect ¶
func (is *InterpolatedString) Inspect() string
func (*InterpolatedString) Interpolate ¶
func (is *InterpolatedString) Interpolate(scope *Scope)
func (*InterpolatedString) Type ¶
func (is *InterpolatedString) Type() ObjectType
type Iterable ¶
type Iterable interface {
// contains filtered or unexported methods
}
Whether the Object is iterable (HASH, ARRAY, RANGE, STRING, TUPLE, Some of the GoObject)
type Json ¶
type Json struct { }
func (*Json) CallMethod ¶
func (*Json) Type ¶
func (j *Json) Type() ObjectType
type KeyValueObj ¶
KeyValue is a type that is used to iterate over a map (if query is created from a map). This type is also used by ToMap() method to output result of a query into a map.
func (*KeyValueObj) CallMethod ¶
func (*KeyValueObj) Inspect ¶
func (kv *KeyValueObj) Inspect() string
func (*KeyValueObj) Type ¶
func (kv *KeyValueObj) Type() ObjectType
type LinqObj ¶
type LinqObj struct { Query Query OrderedQuery OrderedQuery }
func NewLinqObj ¶
func NewLinqObj() *LinqObj
func (*LinqObj) Aggregate ¶
Aggregate applies an accumulator function over a sequence.
Aggregate method makes it simple to perform a calculation over a sequence of values. This method works by calling f() one time for each element in source except the first one. Each time f() is called, Aggregate passes both the element from the sequence and an aggregated value (as the first argument to f()). The first element of source is used as the initial aggregate value. The result of f() replaces the previous aggregated value.
Aggregate returns the final result of f().
func (*LinqObj) AggregateWithSeed ¶
AggregateWithSeed applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
Aggregate method makes it simple to perform a calculation over a sequence of values. This method works by calling f() one time for each element in source except the first one. Each time f() is called, Aggregate passes both the element from the sequence and an aggregated value (as the first argument to f()). The value of the seed parameter is used as the initial aggregate value. The result of f() replaces the previous aggregated value.
Aggregate returns the final result of f().
func (*LinqObj) AggregateWithSeedBy ¶
AggregateWithSeedBy applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
Aggregate method makes it simple to perform a calculation over a sequence of values. This method works by calling f() one time for each element in source. Each time func is called, Aggregate passes both the element from the sequence and an aggregated value (as the first argument to func). The value of the seed parameter is used as the initial aggregate value. The result of func replaces the previous aggregated value.
The final result of func is passed to resultSelector to obtain the final result of Aggregate.
func (*LinqObj) Append ¶
Append inserts an item to the end of a collection, so it becomes the last item.
func (*LinqObj) CallMethod ¶
func (*LinqObj) Concat ¶
Concat concatenates two collections.
The Concat method differs from the Union method because the Concat method returns all the original elements in the input sequences. The Union method returns only unique elements.
func (*LinqObj) CountWith ¶
CountWith returns a number that represents how many elements in the specified collection satisfy a condition.
func (*LinqObj) Distinct ¶
Distinct method returns distinct elements from a collection. The result is an unordered collection that contains no duplicate values.
func (*LinqObj) DistinctBy ¶
DistinctBy method returns distinct elements from a collection. This method executes selector function for each element to determine a value to compare. The result is an unordered collection that contains no duplicate values.
func (*LinqObj) Except ¶
Except produces the set difference of two sequences. The set difference is the members of the first sequence that don't appear in the second sequence.
func (*LinqObj) ExceptBy ¶
ExceptBy invokes a transform function on each element of a collection and produces the set difference of two sequences. The set difference is the members of the first sequence that don't appear in the second sequence.
func (*LinqObj) FirstWith ¶
FirstWith returns the first element of a collection that satisfies a specified condition.
func (*LinqObj) ForEachIndexed ¶
ForEachIndexed performs the specified action on each element of a collection.
func (*LinqObj) From ¶
From initializes a linq query with passed slice, array or map as the source. String, channel or struct implementing Iterable interface can be used as an input. In this case From delegates it to FromString, FromChannel and FromIterable internally.
func (*LinqObj) GroupBy ¶
GroupBy method groups the elements of a collection according to a specified key selector function and projects the elements for each group by using a specified function.
func (*LinqObj) Intersect ¶
Intersect produces the set intersection of the source collection and the provided input collection. The intersection of two sets A and B is defined as the set that contains all the elements of A that also appear in B, but no other elements.
func (*LinqObj) IntersectBy ¶
IntersectBy produces the set intersection of the source collection and the provided input collection. The intersection of two sets A and B is defined as the set that contains all the elements of A that also appear in B, but no other elements.
IntersectBy invokes a transform function on each element of both collections.
func (*LinqObj) Join ¶
Join correlates the elements of two collection based on matching keys.
A join refers to the operation of correlating the elements of two sources of information based on a common key. Join brings the two information sources and the keys by which they are matched together in one method call. This differs from the use of SelectMany, which requires more than one method call to perform the same operation.
Join preserves the order of the elements of outer collection, and for each of these elements, the order of the matching elements of inner.
func (*LinqObj) LastWith ¶
LastWith returns the last element of a collection that satisfies a specified condition.
func (*LinqObj) OrderBy ¶
OrderBy sorts the elements of a collection in ascending order. Elements are sorted according to a key.
func (*LinqObj) OrderByDescending ¶
OrderByDescending sorts the elements of a collection in descending order. Elements are sorted according to a key.
func (*LinqObj) Reverse ¶
Reverse inverts the order of the elements in a collection.
Unlike OrderBy, this sorting method does not consider the actual values themselves in determining the order. Rather, it just returns the elements in the reverse order from which they are produced by the underlying source.
func (*LinqObj) SelectMany ¶
SelectMany projects each element of a collection to a Query, iterates and flattens the resulting collection into one collection.
func (*LinqObj) SelectManyBy ¶
SelectManyBy projects each element of a collection to a Query, iterates and flattens the resulting collection into one collection, and invokes a result selector function on each element therein.
func (*LinqObj) SelectManyByIndexed ¶
SelectManyByIndexed projects each element of a collection to a Query, iterates and flattens the resulting collection into one collection, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.
func (*LinqObj) SelectManyIndexed ¶
SelectManyIndexed projects each element of a collection to a Query, iterates and flattens the resulting collection into one collection.
The first argument to selector represents the zero-based index of that element in the source collection. This can be useful if the elements are in a known order and you want to do something with an element at a particular index, for example. It can also be useful if you want to retrieve the index of one or more elements. The second argument to selector represents the element to process.
func (*LinqObj) SequenceEqual ¶
SequenceEqual determines whether two collections are equalp.
func (*LinqObj) Single ¶
Single returns the only element of a collection, and nil if there is not exactly one element in the collection.
func (*LinqObj) SingleWith ¶
SingleWith returns the only element of a collection that satisfies a specified condition, and nil if more than one such element exists.
func (*LinqObj) Skip ¶
Skip bypasses a specified number of elements in a collection and then returns the remaining elements..
func (*LinqObj) SkipWhile ¶
SkipWhile bypasses elements in a collection as long as a specified condition is true and then returns the remaining elements.
This method tests each element by using predicate and skips the element if the result is true. After the predicate function returns false for an element, that element and the remaining elements in source are returned and there are no more invocations of predicate.
func (*LinqObj) SkipWhileIndexed ¶
SkipWhileIndexed bypasses elements in a collection as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
This method tests each element by using predicate and skips the element if the result is true. After the predicate function returns false for an element, that element and the remaining elements in source are returned and there are no more invocations of predicate.
func (*LinqObj) Sort ¶
Sort returns a new query by sorting elements with provided less function in ascending order. The comparer function should return true if the parameter i is less than j. While this method is uglier than chaining OrderBy, OrderByDescending, ThenBy and ThenByDescending methods, it's performance is much better.
func (*LinqObj) SumFloats ¶
SumFloats computes the sum of a collection of numeric values.
Method returns zero if collection contains no elements.
func (*LinqObj) SumInts ¶
SumInts computes the sum of a collection of numeric values.
Method returns zero if collection contains no elements.
func (*LinqObj) SumUInts ¶
SumUInts computes the sum of a collection of numeric values.
Method returns zero if collection contains no elements.
func (*LinqObj) Take ¶
Take returns a specified number of contiguous elements from the start of a collection.
func (*LinqObj) TakeWhile ¶
TakeWhile returns elements from a collection as long as a specified condition is true, and then skips the remaining elements.
func (*LinqObj) TakeWhileIndexed ¶
TakeWhileIndexed returns elements from a collection as long as a specified condition is true. The element's index is used in the logic of the predicate function. The first argument of predicate represents the zero-based index of the element within collection. The second argument represents the element to test.
func (*LinqObj) ThenBy ¶
ThenBy performs a subsequent ordering of the elements in a collection in ascending order. This method enables you to specify multiple sort criteria by applying any number of ThenBy or ThenByDescending methods.
func (*LinqObj) ThenByDescending ¶
ThenByDescending performs a subsequent ordering of the elements in a collection in descending order. This method enables you to specify multiple sort criteria by applying any number of ThenBy or ThenByDescending methods.
func (*LinqObj) ToOrderedSlice ¶
func (*LinqObj) ToSlice ¶
ToSlice iterates over a collection and saves the results in the slice pointed by v. It overwrites the existing slice, starting from index 0.
If the slice pointed by v has sufficient capacity, v will be pointed to a resliced slice. If it does not, a new underlying array will be allocated and v will point to it.
func (*LinqObj) Type ¶
func (lq *LinqObj) Type() ObjectType
func (*LinqObj) Union ¶
Union produces the set union of two collections.
This method excludes duplicates from the return set. This is different behavior to the Concat method, which returns all the elements in the input collection including duplicates.
func (*LinqObj) Zip ¶
Zip applies a specified function to the corresponding elements of two collections, producing a collection of the results.
The method steps through the two input collections, applying function resultSelector to corresponding elements of the two collections. The method returns a collection of the values that are returned by resultSelector. If the input collections do not have the same number of elements, the method combines elements until it reaches the end of one of the collections. For example, if one collection has three elements and the other one has four, the result collection has only three elements.
type ListElemObject ¶
List element object
func (*ListElemObject) CallMethod ¶
func (*ListElemObject) Inspect ¶
func (e *ListElemObject) Inspect() string
func (*ListElemObject) Type ¶
func (e *ListElemObject) Type() ObjectType
type ListObject ¶
List object
func (*ListObject) CallMethod ¶
func (*ListObject) InsertAfter ¶
func (l *ListObject) InsertAfter(line string, args ...Object) Object
func (*ListObject) InsertBefore ¶
func (l *ListObject) InsertBefore(line string, args ...Object) Object
func (*ListObject) Inspect ¶
func (l *ListObject) Inspect() string
func (*ListObject) MoveToBack ¶
func (l *ListObject) MoveToBack(line string, args ...Object) Object
func (*ListObject) MoveToFront ¶
func (l *ListObject) MoveToFront(line string, args ...Object) Object
func (*ListObject) PushBackList ¶
func (l *ListObject) PushBackList(line string, args ...Object) Object
func (*ListObject) PushFrontList ¶
func (l *ListObject) PushFrontList(line string, args ...Object) Object
func (*ListObject) Type ¶
func (l *ListObject) Type() ObjectType
type LoggerObj ¶
func (*LoggerObj) CallMethod ¶
func (*LoggerObj) Type ¶
func (l *LoggerObj) Type() ObjectType
type MatcherFunc ¶
type MatcherFunc func(*http.Request, *RouteMatch) bool
MatcherFunc is the function signature used by custom matchers.
func (MatcherFunc) Match ¶
func (m MatcherFunc) Match(r *http.Request, match *RouteMatch) bool
Match returns the match for a given request.
type Math ¶
type Math struct{}
func (*Math) CallMethod ¶
func (*Math) Type ¶
func (m *Math) Type() ObjectType
type MethodInfo ¶
type MethodInfo struct { Name string //Method name Instance *ObjectInstance //instance Scope *Scope //Method's scope }
MethodInfo object
func (*MethodInfo) CallMethod ¶
func (*MethodInfo) GetAnnotation ¶
func (m *MethodInfo) GetAnnotation(line string, args ...Object) Object
func (*MethodInfo) GetAnnotations ¶
func (m *MethodInfo) GetAnnotations(line string, args ...Object) Object
func (*MethodInfo) Inspect ¶
func (m *MethodInfo) Inspect() string
func (*MethodInfo) Invoke ¶
func (m *MethodInfo) Invoke(line string, scope *Scope, args ...Object) Object
func (*MethodInfo) Type ¶
func (m *MethodInfo) Type() ObjectType
type MiddlewareFunc ¶
MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler. Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed to it, and then calls the handler passed as parameter to the MiddlewareFunc.
func CORSMethodMiddleware ¶
func CORSMethodMiddleware(r *Router) MiddlewareFunc
CORSMethodMiddleware automatically sets the Access-Control-Allow-Methods response header on requests for routes that have an OPTIONS method matcher to all the method matchers on the route. Routes that do not explicitly handle OPTIONS requests will not be processed by the middleware. See examples for usage.
func (MiddlewareFunc) Middleware ¶
func (mw MiddlewareFunc) Middleware(handler http.Handler) http.Handler
Middleware allows MiddlewareFunc to implement the middleware interface.
type NetObj ¶
type NetObj struct{}
func (*NetObj) CallMethod ¶
func (*NetObj) Type ¶
func (n *NetObj) Type() ObjectType
type Nil ¶
type Nil struct { //sometimes when a function fails, it will return NIL. If this happens, we also need to //know the error reason. The error message is stored in `OptionalMsg` OptionalMsg string }
func (*Nil) CallMethod ¶
func (*Nil) Type ¶
func (n *Nil) Type() ObjectType
func (*Nil) UnmarshalJSON ¶
type Number ¶
type Number interface {
// contains filtered or unexported methods
}
Whether the Object is a number (UINT, INT, FLOAT)
type Object ¶
type Object interface { Type() ObjectType Inspect() string CallMethod(line string, scope *Scope, method string, args ...Object) Object }
func GetGlobalObj ¶
func GoValueToObject ¶
func GoValueToObject(obj interface{}) Object
Go language Value to magpie language Object(take care of slice object value)
func NewHTTPObj ¶
func NewHTTPObj() Object
func NewIOUtilObj ¶
func NewIOUtilObj() Object
func NewJsonObj ¶
func NewJsonObj() Object
func NewLoggerObj ¶
func NewLoggerObj() Object
func NewMathObj ¶
func NewMathObj() Object
func NewOptionalObj ¶
func NewOptionalObj() Object
func NewRegExpObj ¶
func NewRegExpObj() Object
func NewService ¶
func NewSortObj ¶
func NewSortObj() Object
func NewSqlsObject ¶
func NewSqlsObject() Object
func NewStringsObj ¶
func NewStringsObj() Object
func NewTemplateObj ¶
func NewTemplateObj() Object
func NewTimeObj ¶
func NewTimeObj() Object
type ObjectInstance ¶
func (*ObjectInstance) CallMethod ¶
func (*ObjectInstance) GetMethod ¶
func (oi *ObjectInstance) GetMethod(name string) ClassMethod
func (*ObjectInstance) GetModifierLevel ¶
func (oi *ObjectInstance) GetModifierLevel(name string, kind ClassComponentKind) ast.ModifierLevel
func (*ObjectInstance) GetProperty ¶
func (oi *ObjectInstance) GetProperty(name string) *ast.PropertyDeclStmt
func (*ObjectInstance) Inspect ¶
func (oi *ObjectInstance) Inspect() string
func (*ObjectInstance) IsStatic ¶
func (oi *ObjectInstance) IsStatic(val string, kind ClassComponentKind) bool
func (*ObjectInstance) Type ¶
func (oi *ObjectInstance) Type() ObjectType
type ObjectType ¶
type ObjectType string
type Optional ¶
type Optional struct {
Value Object
}
func (*Optional) CallMethod ¶
func (*Optional) Filter ¶
If a value is present, and the value matches the given predicate, returns an Optional describing the value, otherwise returns an empty Optional.
func (*Optional) IfPresent ¶
If a value is present, performs the given action with the value, otherwise does nothing.
func (*Optional) IfPresentOrElse ¶
If a value is present, performs the given action with the value, otherwise performs the given empty-based action.
func (*Optional) Map ¶
If a value is present, returns an Optional describing (as if by ofNullable) the result of applying the given mapping function to the value, otherwise returns an empty Optional.
If the mapping function returns a nil result then this method returns an empty Optional.
func (*Optional) OfNullable ¶
Returns an Optional describing the given value, if non-nil, otherwise returns an empty Optional.
func (*Optional) Or ¶
If a value is present, returns an Optional describing the value, otherwise returns an Optional produced by the supplying function.
func (*Optional) OrElseGet ¶
If a value is present, returns the value, otherwise returns the result produced by the supplying function.
func (*Optional) OrElseThrow ¶
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.
func (*Optional) Type ¶
func (o *Optional) Type() ObjectType
type OrderedQuery ¶
type OrderedQuery struct { Query // contains filtered or unexported fields }
OrderedQuery is the type returned from OrderBy, OrderByDescending ThenBy and ThenByDescending functions.
type Os ¶
type Os struct{}
func (*Os) CallMethod ¶
func (*Os) Type ¶
func (o *Os) Type() ObjectType
type PipeObj ¶
type PipeObj struct { Reader *io.PipeReader Writer *io.PipeWriter }
Pipe Object
func (*PipeObj) CallMethod ¶
func (*PipeObj) Type ¶
func (p *PipeObj) Type() ObjectType
type PropertyInfo ¶
type PropertyInfo struct { Name string //Property name Instance *ObjectInstance //instance Scope *Scope //Property's scope }
PropertyInfo object
func (*PropertyInfo) CallMethod ¶
func (*PropertyInfo) GetAnnotations ¶
func (p *PropertyInfo) GetAnnotations(line string, scope *Scope, args ...Object) Object
func (*PropertyInfo) Inspect ¶
func (p *PropertyInfo) Inspect() string
func (*PropertyInfo) Type ¶
func (p *PropertyInfo) Type() ObjectType
type Query ¶
type Query struct {
Iterate func() Iterator
}
Query is the type returned from query functions.
type RegEx ¶
func (*RegEx) CallMethod ¶
func (*RegEx) FindAllStringIndex ¶
func (*RegEx) FindAllStringSubmatch ¶
func (*RegEx) FindAllStringSubmatchIndex ¶
func (*RegEx) FindStringIndex ¶
func (*RegEx) FindStringSubmatch ¶
func (*RegEx) FindStringSubmatchIndex ¶
func (*RegEx) MarshalJSON ¶
MarshalJSON turns regex into string/json
func (*RegEx) ReplaceAllLiteralString ¶
func (*RegEx) ReplaceAllStringFunc ¶
func (*RegEx) ReplaceFirstString ¶
func (*RegEx) Type ¶
func (re *RegEx) Type() ObjectType
func (*RegEx) UnmarshalJSON ¶
UnmarshalJSON turns a string into proper regex
type RegExpObj ¶
func (*RegExpObj) CallMethod ¶
func (*RegExpObj) CompilePOSIX ¶
func (*RegExpObj) FindAllString ¶
func (*RegExpObj) FindAllStringIndex ¶
func (*RegExpObj) FindAllStringSubmatch ¶
func (*RegExpObj) FindAllStringSubmatchIndex ¶
func (*RegExpObj) FindStringIndex ¶
func (*RegExpObj) FindStringSubmatch ¶
func (*RegExpObj) FindStringSubmatchIndex ¶
func (*RegExpObj) MatchString ¶
func (*RegExpObj) MustCompile ¶
func (*RegExpObj) MustCompilePOSIX ¶
func (*RegExpObj) ReplaceAllLiteralString ¶
func (*RegExpObj) ReplaceAllString ¶
func (*RegExpObj) ReplaceAllStringFunc ¶
func (*RegExpObj) SubexpNames ¶
func (*RegExpObj) Type ¶
func (rex *RegExpObj) Type() ObjectType
type ReturnValue ¶
func (*ReturnValue) CallMethod ¶
func (*ReturnValue) Inspect ¶
func (rv *ReturnValue) Inspect() string
func (*ReturnValue) Type ¶
func (rv *ReturnValue) Type() ObjectType
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route stores information to match a request and build URLs.
func CurrentRoute ¶
CurrentRoute returns the matched route for the current request, if any. This only works when called inside the handler of the matched route because the matched route is stored in the request context which is cleared after the handler returns, unless the KeepContext option is set on the Router.
func (*Route) BuildVarsFunc ¶
func (r *Route) BuildVarsFunc(f BuildVarsFunc) *Route
BuildVarsFunc adds a custom function to be used to modify build variables before a route's URL is built.
func (*Route) GetHandler ¶
GetHandler returns the handler for the route, if any.
func (*Route) GetHostTemplate ¶
GetHostTemplate returns the template used to build the route match. This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if the route does not define a host.
func (*Route) GetMethods ¶
GetMethods returns the methods the route matches against This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if route does not have methods.
func (*Route) GetPathRegexp ¶
GetPathRegexp returns the expanded regular expression used to match route path. This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if the route does not define a path.
func (*Route) GetPathTemplate ¶
GetPathTemplate returns the template used to build the route match. This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if the route does not define a path.
func (*Route) GetQueriesRegexp ¶
GetQueriesRegexp returns the expanded regular expressions used to match the route queries. This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if the route does not have queries.
func (*Route) GetQueriesTemplates ¶
GetQueriesTemplates returns the templates used to build the query matching. This is useful for building simple REST API documentation and for instrumentation against third-party services. An error will be returned if the route does not define queries.
func (*Route) HandlerFunc ¶
HandlerFunc sets a handler function for the route.
func (*Route) Headers ¶
Headers adds a matcher for request header values. It accepts a sequence of key/value pairs to be matched. For example:
r := mux.NewRouter() r.Headers("Content-Type", "application/json", "X-Requested-With", "XMLHttpRequest")
The above route will only match if both request header values match. If the value is an empty string, it will match any value if the key is set.
func (*Route) HeadersRegexp ¶
HeadersRegexp accepts a sequence of key/value pairs, where the value has regex support. For example:
r := mux.NewRouter() r.HeadersRegexp("Content-Type", "application/(text|json)", "X-Requested-With", "XMLHttpRequest")
The above route will only match if both the request header matches both regular expressions. If the value is an empty string, it will match any value if the key is set. Use the start and end of string anchors (^ and $) to match an exact value.
func (*Route) Host ¶
Host adds a matcher for the URL host. It accepts a template with zero or more URL variables enclosed by {}. Variables can define an optional regexp pattern to be matched:
- {name} matches anything until the next dot.
- {name:pattern} matches the given regexp pattern.
For example:
r := mux.NewRouter() r.Host("www.example.com") r.Host("{subdomain}.domain.com") r.Host("{subdomain:[a-z]+}.domain.com")
Variable names must be unique in a given route. They can be retrieved calling mux.Vars(request).
func (*Route) Match ¶
func (r *Route) Match(req *http.Request, match *RouteMatch) bool
Match matches the route against the request.
func (*Route) MatcherFunc ¶
func (r *Route) MatcherFunc(f MatcherFunc) *Route
MatcherFunc adds a custom function to be used as request matcher.
func (*Route) Methods ¶
Methods adds a matcher for HTTP methods. It accepts a sequence of one or more methods to be matched, e.g.: "GET", "POST", "PUT".
func (*Route) Name ¶
Name sets the name for the route, used to build URLs. It is an error to call Name more than once on a route.
func (*Route) Path ¶
Path adds a matcher for the URL path. It accepts a template with zero or more URL variables enclosed by {}. The template must start with a "/". Variables can define an optional regexp pattern to be matched:
- {name} matches anything until the next slash.
- {name:pattern} matches the given regexp pattern.
For example:
r := mux.NewRouter() r.Path("/products/").Handler(ProductsHandler) r.Path("/products/{key}").Handler(ProductsHandler) r.Path("/articles/{category}/{id:[0-9]+}"). Handler(ArticleHandler)
Variable names must be unique in a given route. They can be retrieved calling mux.Vars(request).
func (*Route) PathPrefix ¶
PathPrefix adds a matcher for the URL path prefix. This matches if the given template is a prefix of the full URL path. See Route.Path() for details on the tpl argument.
Note that it does not treat slashes specially ("/foobar/" will be matched by the prefix "/foo") so you may want to use a trailing slash here.
Also note that the setting of Router.StrictSlash() has no effect on routes with a PathPrefix matcher.
func (*Route) Queries ¶
Queries adds a matcher for URL query values. It accepts a sequence of key/value pairs. Values may define variables. For example:
r := mux.NewRouter() r.Queries("foo", "bar", "id", "{id:[0-9]+}")
The above route will only match if the URL contains the defined queries values, e.g.: ?foo=bar&id=42.
If the value is an empty string, it will match any value if the key is set.
Variables can define an optional regexp pattern to be matched:
- {name} matches anything until the next slash.
- {name:pattern} matches the given regexp pattern.
func (*Route) Schemes ¶
Schemes adds a matcher for URL schemes. It accepts a sequence of schemes to be matched, e.g.: "http", "https". If the request's URL has a scheme set, it will be matched against. Generally, the URL scheme will only be set if a previous handler set it, such as the ProxyHeaders handler from gorilla/handlers. If unset, the scheme will be determined based on the request's TLS termination state. The first argument to Schemes will be used when constructing a route URL.
func (*Route) SkipClean ¶
SkipClean reports whether path cleaning is enabled for this route via Router.SkipClean.
func (*Route) Subrouter ¶
Subrouter creates a subrouter for the route.
It will test the inner routes only if the parent route matched. For example:
r := mux.NewRouter() s := r.Host("www.example.com").Subrouter() s.HandleFunc("/products/", ProductsHandler) s.HandleFunc("/products/{key}", ProductHandler) s.HandleFunc("/articles/{category}/{id:[0-9]+}"), ArticleHandler)
Here, the routes registered in the subrouter won't be tested if the host doesn't match.
func (*Route) URL ¶
URL builds a URL for the route.
It accepts a sequence of key/value pairs for the route variables. For example, given this route:
r := mux.NewRouter() r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). Name("article")
...a URL for it can be built using:
url, err := r.Get("article").URL("category", "technology", "id", "42")
...which will return an url.URL with the following path:
"/articles/technology/42"
This also works for host variables:
r := mux.NewRouter() r.HandleFunc("/articles/{category}/{id:[0-9]+}", ArticleHandler). Host("{subdomain}.domain.com"). Name("article") // url.String() will be "http://news.domain.com/articles/technology/42" url, err := r.Get("article").URL("subdomain", "news", "category", "technology", "id", "42")
The scheme of the resulting url will be the first argument that was passed to Schemes:
// url.String() will be "https://example.com" r := mux.NewRouter() url, err := r.Host("example.com") .Schemes("https", "http").URL()
All variables defined in the route are required, and their values must conform to the corresponding patterns.
type RouteMatch ¶
type RouteMatch struct { Route *Route Handler http.Handler Vars map[string]string // MatchErr is set to appropriate matching error // It is set to ErrMethodMismatch if there is a mismatch in // the request method and route method MatchErr error }
RouteMatch stores information about a matched route.
type Router ¶
type Router struct { // Configurable Handler to be used when no route matches. NotFoundHandler http.Handler // Configurable Handler to be used when the request method does not match the route. MethodNotAllowedHandler http.Handler // If true, do not clear the request context after handling the request. // // Deprecated: No effect, since the context is stored on the request itself. KeepContext bool // contains filtered or unexported fields }
Router registers routes to be matched and dispatches a handler.
It implements the http.Handler interface, so it can be registered to serve requests:
var router = mux.NewRouter() func main() { http.Handle("/", router) }
Or, for Google App Engine, register it in a init() function:
func init() { http.Handle("/", router) }
This will send all incoming requests to the router.
func (*Router) BuildVarsFunc ¶
func (r *Router) BuildVarsFunc(f BuildVarsFunc) *Route
BuildVarsFunc registers a new route with a custom function for modifying route variables before building a URL.
func (*Router) GetRoute ¶
GetRoute returns a route registered with the given name. This method was renamed to Get() and remains here for backwards compatibility.
func (*Router) Handle ¶
Handle registers a new route with a matcher for the URL path. See Route.Path() and Route.Handler().
func (*Router) HandleFunc ¶
HandleFunc registers a new route with a matcher for the URL path. See Route.Path() and Route.HandlerFunc().
func (*Router) Headers ¶
Headers registers a new route with a matcher for request header values. See Route.Headers().
func (*Router) Match ¶
func (r *Router) Match(req *http.Request, match *RouteMatch) bool
Match attempts to match the given request against the router's registered routes.
If the request matches a route of this router or one of its subrouters the Route, Handler, and Vars fields of the the match argument are filled and this function returns true.
If the request does not match any of this router's or its subrouters' routes then this function returns false. If available, a reason for the match failure will be filled in the match argument's MatchErr field. If the match failure type (eg: not found) has a registered handler, the handler is assigned to the Handler field of the match argument.
func (*Router) MatcherFunc ¶
func (r *Router) MatcherFunc(f MatcherFunc) *Route
MatcherFunc registers a new route with a custom matcher function. See Route.MatcherFunc().
func (*Router) Methods ¶
Methods registers a new route with a matcher for HTTP methods. See Route.Methods().
func (*Router) PathPrefix ¶
PathPrefix registers a new route with a matcher for the URL path prefix. See Route.PathPrefix().
func (*Router) Queries ¶
Queries registers a new route with a matcher for URL query values. See Route.Queries().
func (*Router) Schemes ¶
Schemes registers a new route with a matcher for URL schemes. See Route.Schemes().
func (*Router) ServeHTTP ¶
func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP dispatches the handler registered in the matched route.
When there is a match, the route variables can be retrieved calling mux.Vars(request).
func (*Router) SkipClean ¶
SkipClean defines the path cleaning behaviour for new routes. The initial value is false. Users should be careful about which routes are not cleaned
When true, if the route path is "/path//to", it will remain with the double slash. This is helpful if you have a route like: /fetch/http://xkcd.com/534/
When false, the path will be cleaned, so /fetch/http://xkcd.com/534/ will become /fetch/http/xkcd.com/534
func (*Router) StrictSlash ¶
StrictSlash defines the trailing slash behavior for new routes. The initial value is false.
When true, if the route path is "/path/", accessing "/path" will perform a redirect to the former and vice versa. In other words, your application will always see the path as specified in the route.
When false, if the route path is "/path", accessing "/path/" will not match this route and vice versa.
The re-direct is a HTTP 301 (Moved Permanently). Note that when this is set for routes with a non-idempotent method (e.g. POST, PUT), the subsequent re-directed request will be made as a GET by most clients. Use middleware or client settings to modify this behaviour as needed.
Special case: when a route sets a path prefix using the PathPrefix() method, strict slash is ignored for that route because the redirect behavior can't be determined from a prefix alone. However, any subrouters created from that route inherit the original StrictSlash setting.
func (*Router) Use ¶
func (r *Router) Use(mwf ...MiddlewareFunc)
Use appends a MiddlewareFunc to the chain. Middleware can be used to intercept or otherwise modify requests and/or responses, and are executed in the order that they are applied to the Router.
func (*Router) UseEncodedPath ¶
UseEncodedPath tells the router to match the encoded original path to the routes. For eg. "/path/foo%2Fbar/to" will match the path "/path/{var}/to".
If not called, the router will match the unencoded path to the routes. For eg. "/path/foo%2Fbar/to" will match the path "/path/foo/bar/to"
type Scope ¶
type Scope struct { Writer io.Writer CallStack *CallStack //We need to use `Mutex`, because we added 'spawn'(multithread). //if not,when running `spawn`, there will be lot of errors, even core dump. //The reason is golang's map is not thread safe sync.RWMutex // contains filtered or unexported fields }
func (*Scope) CallerFrame ¶
CallerFrame return caller's CallFrame
func (*Scope) CurrentFrame ¶
func (*Scope) DebugPrint ¶
func (*Scope) IsReadOnly ¶
type ServiceObj ¶
func (*ServiceObj) CallMethod ¶
func (*ServiceObj) HandleFunc ¶
func (s *ServiceObj) HandleFunc(line string, scope *Scope, args ...Object) Object
func (*ServiceObj) Inspect ¶
func (s *ServiceObj) Inspect() string
func (*ServiceObj) Type ¶
func (s *ServiceObj) Type() ObjectType
type SortObj ¶
type SortObj struct{}
func (*SortObj) CallMethod ¶
func (*SortObj) FloatsAreSorted ¶
func (*SortObj) StringsAreSorted ¶
func (*SortObj) Type ¶
func (s *SortObj) Type() ObjectType
type SqlObject ¶
***************************************************************
SQL Object
***************************************************************
func (*SqlObject) CallMethod ¶
func (*SqlObject) SetMaxIdleConns ¶
func (*SqlObject) SetMaxOpenConns ¶
func (*SqlObject) Type ¶
func (s *SqlObject) Type() ObjectType
type SqlsObject ¶
type SqlsObject struct { }
This object's purpose is only for 5 predefined null constants
func (*SqlsObject) CallMethod ¶
func (*SqlsObject) Inspect ¶
func (s *SqlsObject) Inspect() string
func (*SqlsObject) Type ¶
func (s *SqlsObject) Type() ObjectType
type String ¶
func (*String) CallMethod ¶
func (*String) Hash ¶
code stolen from https://github.com/AlasdairF/Hash/blob/master/hash.go
func (*String) MarshalJSON ¶
func (*String) ParseInt ¶
If you want to check if the parse is successful, you could do this:
v = "abcd".parseInt(10) if !v.valid() { println("abcd is not an int") }
This also applies to parseFloat() and parseBool()
func (*String) Type ¶
func (s *String) Type() ObjectType
func (*String) UnmarshalJSON ¶
type StringSlice ¶
StringSlice attaches the methods of Interface to []string, sorting in ascending/descending order.
func (StringSlice) Len ¶
func (p StringSlice) Len() int
func (StringSlice) Less ¶
func (p StringSlice) Less(i, j int) bool
func (StringSlice) Swap ¶
func (p StringSlice) Swap(i, j int)
type StringsObj ¶
type StringsObj struct{}
func (*StringsObj) CallMethod ¶
func (*StringsObj) ContainsAny ¶
func (s *StringsObj) ContainsAny(line string, args ...Object) Object
func (*StringsObj) Hash ¶
func (s *StringsObj) Hash(line string, args ...Object) Object
code stolen from https://github.com/AlasdairF/Hash/blob/master/hash.go
func (*StringsObj) Inspect ¶
func (s *StringsObj) Inspect() string
func (*StringsObj) Join ¶
func (s *StringsObj) Join(line string, args ...Object) Object
join(arr) or join(arr, sep)
func (*StringsObj) ParseFloat ¶
func (s *StringsObj) ParseFloat(line string, args ...Object) Object
func (*StringsObj) ParseInt ¶
func (s *StringsObj) ParseInt(line string, args ...Object) Object
If you want to check if the parse is successful, you could do this:
v = strings.parseInt("abc", 10) if !v.valid() { println("abcd is not an int") }
This also applies to parseFloat() and parseBool()
func (*StringsObj) TrimPrefix ¶
func (s *StringsObj) TrimPrefix(line string, args ...Object) Object
func (*StringsObj) TrimSuffix ¶
func (s *StringsObj) TrimSuffix(line string, args ...Object) Object
func (*StringsObj) Type ¶
func (s *StringsObj) Type() ObjectType
type Struct ¶
type Struct struct { Scope *Scope // contains filtered or unexported fields }
func (*Struct) CallMethod ¶
func (*Struct) Type ¶
func (s *Struct) Type() ObjectType
type SyncCondObj ¶
Condition Object
func (*SyncCondObj) CallMethod ¶
func (*SyncCondObj) Inspect ¶
func (c *SyncCondObj) Inspect() string
func (*SyncCondObj) Type ¶
func (c *SyncCondObj) Type() ObjectType
type SyncMutexObj ¶
Mutex Object
func (*SyncMutexObj) CallMethod ¶
func (*SyncMutexObj) Inspect ¶
func (m *SyncMutexObj) Inspect() string
func (*SyncMutexObj) Type ¶
func (m *SyncMutexObj) Type() ObjectType
type SyncOnceObj ¶
Once Object
func (*SyncOnceObj) CallMethod ¶
func (*SyncOnceObj) Inspect ¶
func (o *SyncOnceObj) Inspect() string
func (*SyncOnceObj) Type ¶
func (o *SyncOnceObj) Type() ObjectType
type SyncRWMutexObj ¶
RWMutex Object
func (*SyncRWMutexObj) CallMethod ¶
func (*SyncRWMutexObj) Inspect ¶
func (rwm *SyncRWMutexObj) Inspect() string
func (*SyncRWMutexObj) RUnlock ¶
func (rwm *SyncRWMutexObj) RUnlock(line string, args ...Object) Object
func (*SyncRWMutexObj) Type ¶
func (rwm *SyncRWMutexObj) Type() ObjectType
type SyncWaitGroupObj ¶
WaitGroup Oject
func (*SyncWaitGroupObj) CallMethod ¶
func (*SyncWaitGroupObj) Done ¶
func (wg *SyncWaitGroupObj) Done(line string, args ...Object) Object
func (*SyncWaitGroupObj) Inspect ¶
func (wg *SyncWaitGroupObj) Inspect() string
func (*SyncWaitGroupObj) Type ¶
func (wg *SyncWaitGroupObj) Type() ObjectType
type TCPListenerObject ¶
type TCPListenerObject struct { Listener *net.TCPListener Address string }
TCP Listener object
func (*TCPListenerObject) AcceptTCP ¶
func (l *TCPListenerObject) AcceptTCP(line string, args ...Object) Object
func (*TCPListenerObject) Addr ¶
func (l *TCPListenerObject) Addr(line string, args ...Object) Object
func (*TCPListenerObject) CallMethod ¶
func (*TCPListenerObject) Close ¶
func (l *TCPListenerObject) Close(line string, args ...Object) Object
func (*TCPListenerObject) Inspect ¶
func (l *TCPListenerObject) Inspect() string
func (*TCPListenerObject) SetDeadline ¶
func (l *TCPListenerObject) SetDeadline(line string, args ...Object) Object
func (*TCPListenerObject) Type ¶
func (l *TCPListenerObject) Type() ObjectType
type TcpConnObject ¶
TCP connection object
func (*TcpConnObject) Addr ¶
func (t *TcpConnObject) Addr(line string, args ...Object) Object
Return the remote address
func (*TcpConnObject) CallMethod ¶
func (*TcpConnObject) CloseRead ¶
func (t *TcpConnObject) CloseRead(line string, args ...Object) Object
func (*TcpConnObject) CloseWrite ¶
func (t *TcpConnObject) CloseWrite(line string, args ...Object) Object
func (*TcpConnObject) Inspect ¶
func (t *TcpConnObject) Inspect() string
func (*TcpConnObject) SetDeadline ¶
func (t *TcpConnObject) SetDeadline(line string, args ...Object) Object
func (*TcpConnObject) SetLinger ¶
func (t *TcpConnObject) SetLinger(line string, args ...Object) Object
func (*TcpConnObject) SetNoDelay ¶
func (t *TcpConnObject) SetNoDelay(line string, args ...Object) Object
func (*TcpConnObject) SetReadBuffer ¶
func (t *TcpConnObject) SetReadBuffer(line string, args ...Object) Object
func (*TcpConnObject) SetReadDeadline ¶
func (t *TcpConnObject) SetReadDeadline(line string, args ...Object) Object
func (*TcpConnObject) SetWriteBuffer ¶
func (t *TcpConnObject) SetWriteBuffer(line string, args ...Object) Object
func (*TcpConnObject) SetWriteDeadline ¶
func (t *TcpConnObject) SetWriteDeadline(line string, args ...Object) Object
func (*TcpConnObject) Type ¶
func (t *TcpConnObject) Type() ObjectType
type TemplateObj ¶
type TemplateObj struct { TmplType int64 //template type TextTemplate *text.Template HTMLTemplate *html.Template }
func (*TemplateObj) CallMethod ¶
func (*TemplateObj) DefinedTemplates ¶
func (t *TemplateObj) DefinedTemplates(line string, args ...Object) Object
func (*TemplateObj) ExecuteTemplate ¶
func (t *TemplateObj) ExecuteTemplate(line string, args ...Object) Object
Note :ExecuteTemplate is similar to Execute function, should extract a common private function.
func (*TemplateObj) Funcs ¶
func (t *TemplateObj) Funcs(line string, scope *Scope, args ...Object) Object
func (*TemplateObj) HTMLEscape ¶
func (t *TemplateObj) HTMLEscape(line string, args ...Object) Object
func (*TemplateObj) HTMLEscapeString ¶
func (t *TemplateObj) HTMLEscapeString(line string, args ...Object) Object
func (*TemplateObj) HTMLEscaper ¶
func (t *TemplateObj) HTMLEscaper(line string, args ...Object) Object
func (*TemplateObj) Inspect ¶
func (t *TemplateObj) Inspect() string
func (*TemplateObj) JSEscapeString ¶
func (t *TemplateObj) JSEscapeString(line string, args ...Object) Object
func (*TemplateObj) ParseFiles ¶
func (t *TemplateObj) ParseFiles(line string, args ...Object) Object
func (*TemplateObj) ParseHtmlFiles ¶
func (t *TemplateObj) ParseHtmlFiles(line string, args ...Object) Object
func (*TemplateObj) ParseHtmlGlob ¶
func (t *TemplateObj) ParseHtmlGlob(line string, args ...Object) Object
func (*TemplateObj) ParseTextFiles ¶
func (t *TemplateObj) ParseTextFiles(line string, args ...Object) Object
func (*TemplateObj) ParseTextGlob ¶
func (t *TemplateObj) ParseTextGlob(line string, args ...Object) Object
func (*TemplateObj) Type ¶
func (t *TemplateObj) Type() ObjectType
func (*TemplateObj) URLQueryEscaper ¶
func (t *TemplateObj) URLQueryEscaper(line string, args ...Object) Object
type Throw ¶
type Throw struct {
// contains filtered or unexported fields
}
func (*Throw) CallMethod ¶
func (*Throw) Type ¶
func (t *Throw) Type() ObjectType
type Throwable ¶
type Throwable interface {
// contains filtered or unexported methods
}
Whether the Object is throwable (STRING for now)
type TimeObj ¶
func ParseDuration ¶
ParseDuration with support for Y(year), M(month) and D(day)
func (*TimeObj) CallMethod ¶
func (*TimeObj) MarshalJSON ¶
func (*TimeObj) Type ¶
func (t *TimeObj) Type() ObjectType
func (*TimeObj) UnixLocalNano ¶
to timestamp(LOCAL)
func (*TimeObj) UnmarshalJSON ¶
type Tuple ¶
type Tuple struct { // Used in function return values. // if a function returns multiple values, they will wrap the results into a tuple, // the flag will be set to true IsMulti bool Members []Object }
func (*Tuple) CallMethod ¶
func (*Tuple) Type ¶
func (t *Tuple) Type() ObjectType
type UIntSlice ¶
UIntSlice attaches the methods of Interface to []int, sorting in ascending/descending order.
type UInteger ¶
func NewUInteger ¶
Returns a valid Unsigned Integer Object, that is Valid=true
func (*UInteger) CallMethod ¶
func (*UInteger) MarshalJSON ¶
Json marshal handling
func (*UInteger) Scan ¶
Implements sql's Scanner Interface. So when calling sql.Rows.Scan(xxx), or sql.Row.Scan(xxx), we could pass this object to `Scan` method
func (*UInteger) Type ¶
func (i *UInteger) Type() ObjectType
func (*UInteger) UnmarshalJSON ¶
type UdpConnObject ¶
UDP connection object
func (*UdpConnObject) Addr ¶
func (u *UdpConnObject) Addr(line string, args ...Object) Object
Return the remote address
func (*UdpConnObject) CallMethod ¶
func (*UdpConnObject) Inspect ¶
func (u *UdpConnObject) Inspect() string
func (*UdpConnObject) SetDeadline ¶
func (u *UdpConnObject) SetDeadline(line string, args ...Object) Object
func (*UdpConnObject) SetReadBuffer ¶
func (u *UdpConnObject) SetReadBuffer(line string, args ...Object) Object
func (*UdpConnObject) SetReadDeadline ¶
func (u *UdpConnObject) SetReadDeadline(line string, args ...Object) Object
func (*UdpConnObject) SetWriteBuffer ¶
func (u *UdpConnObject) SetWriteBuffer(line string, args ...Object) Object
func (*UdpConnObject) SetWriteDeadline ¶
func (u *UdpConnObject) SetWriteDeadline(line string, args ...Object) Object
func (*UdpConnObject) Type ¶
func (u *UdpConnObject) Type() ObjectType
type UnicodeObj ¶
type UnicodeObj struct { }
func NewUnicodeObj ¶
func NewUnicodeObj() *UnicodeObj
func (*UnicodeObj) CallMethod ¶
func (*UnicodeObj) Inspect ¶
func (u *UnicodeObj) Inspect() string
func (*UnicodeObj) Type ¶
func (u *UnicodeObj) Type() ObjectType
type UnixConnObject ¶
UNIX connection object
func (*UnixConnObject) Addr ¶
func (u *UnixConnObject) Addr(line string, args ...Object) Object
Return the remote address
func (*UnixConnObject) CallMethod ¶
func (*UnixConnObject) CloseRead ¶
func (u *UnixConnObject) CloseRead(line string, args ...Object) Object
func (*UnixConnObject) CloseWrite ¶
func (u *UnixConnObject) CloseWrite(line string, args ...Object) Object
func (*UnixConnObject) Inspect ¶
func (u *UnixConnObject) Inspect() string
func (*UnixConnObject) SetDeadline ¶
func (u *UnixConnObject) SetDeadline(line string, args ...Object) Object
func (*UnixConnObject) SetReadBuffer ¶
func (u *UnixConnObject) SetReadBuffer(line string, args ...Object) Object
func (*UnixConnObject) SetReadDeadline ¶
func (u *UnixConnObject) SetReadDeadline(line string, args ...Object) Object
func (*UnixConnObject) SetWriteBuffer ¶
func (u *UnixConnObject) SetWriteBuffer(line string, args ...Object) Object
func (*UnixConnObject) SetWriteDeadline ¶
func (u *UnixConnObject) SetWriteDeadline(line string, args ...Object) Object
func (*UnixConnObject) Type ¶
func (u *UnixConnObject) Type() ObjectType
type UnixListenerObject ¶
type UnixListenerObject struct { Listener *net.UnixListener Address string }
UNIX Listener object
func (*UnixListenerObject) AcceptUnix ¶
func (l *UnixListenerObject) AcceptUnix(line string, args ...Object) Object
func (*UnixListenerObject) Addr ¶
func (l *UnixListenerObject) Addr(line string, args ...Object) Object
func (*UnixListenerObject) CallMethod ¶
func (*UnixListenerObject) Close ¶
func (l *UnixListenerObject) Close(line string, args ...Object) Object
func (*UnixListenerObject) Inspect ¶
func (l *UnixListenerObject) Inspect() string
func (*UnixListenerObject) SetDeadline ¶
func (l *UnixListenerObject) SetDeadline(line string, args ...Object) Object
func (*UnixListenerObject) Type ¶
func (l *UnixListenerObject) Type() ObjectType
Source Files ¶
- array.go
- builtin.go
- channel.go
- class.go
- csv.go
- debugger.go
- decimal.go
- errors.go
- eval.go
- file.go
- filepath.go
- flag.go
- fmt.go
- goobject.go
- hash.go
- http.go
- json.go
- levenshtein.go
- linq.go
- list.go
- log.go
- math.go
- net.go
- object.go
- optional.go
- os.go
- regex.go
- scope.go
- service.go
- sort.go
- sql.go
- string.go
- sync.go
- template.go
- time.go
- tuple.go
- unicode.go