Documentation ¶
Index ¶
- Variables
- func CallFunc(store *tinyphp.Store, f interface{}, args []interface{}) (interface{}, error)
- func CheckArgsNum(args []interface{}, min int) error
- func IsCallable(store *tinyphp.Store, f interface{}) (interface{}, error)
- func ParseVal(val interface{}) interface{}
- func RegisterDict()
- func RegisterFunc(name string, f tinyphp.Func) error
- func RegisterList()
- func RegisterMath()
- func RegisterMethod(typ, name string, f tinyphp.Func) error
- func RegisterResult()
- func RegisterString()
- func RegisterTime()
- type Dict
- func (d *Dict) Count() int
- func (d *Dict) Decr(k string) (int, bool)
- func (d *Dict) Del(k string)
- func (d *Dict) Get(k string) interface{}
- func (d *Dict) Has(k string) bool
- func (d *Dict) Incr(k string) (int, bool)
- func (d *Dict) MarshalJSON() ([]byte, error)
- func (d *Dict) Range() interface{}
- func (d *Dict) Set(k string, v interface{})
- func (d *Dict) TypeName() string
- type List
- func (l *List) Count() int
- func (l *List) Decr(k int) (int, bool)
- func (l *List) Get(k int) interface{}
- func (l *List) Has(k int) bool
- func (l *List) Incr(k int) (int, bool)
- func (l *List) MarshalJSON() ([]byte, error)
- func (l *List) Pop() interface{}
- func (l *List) Push(v ...interface{})
- func (l *List) Range() interface{}
- func (l *List) Set(k int, v interface{}) bool
- func (l *List) Shift() interface{}
- func (l *List) TypeName() string
- func (l *List) Unshift(v ...interface{})
- type Result
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckArgsNum ¶
func IsCallable ¶
func RegisterDict ¶
func RegisterDict()
func RegisterList ¶
func RegisterList()
func RegisterMath ¶
func RegisterMath()
func RegisterResult ¶
func RegisterResult()
func RegisterString ¶
func RegisterString()
func RegisterTime ¶
func RegisterTime()
Types ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
func NewDictWithArr ¶
func (*Dict) MarshalJSON ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func NewListWithArr ¶
func NewListWithArr(arr []interface{}) *List
func (*List) MarshalJSON ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.