Documentation
¶
Index ¶
- Constants
- func AddInt(x *big.Int, y int64) *big.Int
- func Atoi(num string, value int) (int, error)
- func Conditional(condition, trueExp, falseExp interface{}) interface{}
- func Contain(listOrMap, obj interface{}) bool
- func Contains(s []string, e string) bool
- func ContainsWithoutCase(s []string, e string) bool
- func Convert(i interface{}) interface{}
- func CopyInt(src *big.Int) *big.Int
- func InList(list []string, e string) bool
- func Intersection(s1, s2 []string) (inter []string)
- func IsFunc(v interface{}) bool
- func IsIn(dataList interface{}, data interface{}) bool
- func IsNil(i interface{}) bool
- func Must(ops ...interface{})
- func NewError(message string, err string) error
- func Now() string
- func OR(one, value interface{}) interface{}
- func PrettyPrintJson(b []byte) string
- func SubSlice(s1 []string, s2 []string) bool
- type BaseList
- func (bl *BaseList) Add(s ...interface{}) bool
- func (bl BaseList) Copy() CopyAble
- func (bl *BaseList) Delete(index int) (bool, error)
- func (bl *BaseList) Insert(index int, s interface{}) (bool, error)
- func (bl *BaseList) Iterator() Iterator
- func (bl *BaseList) Len() int
- func (bl *BaseList) List() []interface{}
- type Column
- type CopyAble
- type DistinctList
- type Iterator
- type List
- type PairFormatter
- type Row
- type Table
- func (t *Table) AddColumn(name string)
- func (t *Table) Column(name string) *Column
- func (t *Table) ColumnIndex(name string) (index int)
- func (t *Table) GroupBy(fields ...string) []*Table
- func (t *Table) Iterator() *TableIterator
- func (t *Table) PrettyPrint()
- func (t *Table) Push(data map[string]interface{})
- func (t *Table) Row(index int) *Row
- type TableIterator
Constants ¶
View Source
const ( OBJECT_OPTION_ONE_MATCH_TWO = 0x1 OBJECT_OPTION_TWO_MATCH_ONE = 0x2 OBJECT_OPTION_SAME = 0x4 )
Variables ¶
This section is empty.
Functions ¶
func Conditional ¶
func Conditional(condition, trueExp, falseExp interface{}) interface{}
func ContainsWithoutCase ¶
func Intersection ¶
func PrettyPrintJson ¶
Types ¶
type BaseList ¶
type BaseList struct {
L []interface{}
}
func NewBaseList ¶
func NewBaseList(ls ...interface{}) BaseList
type Column ¶
type Column struct {
Name string
Table *Table
DataList DistinctList
}
func (*Column) List ¶
func (cl *Column) List() DistinctList
type DistinctList ¶
type DistinctList []interface{}
func (DistinctList) Distinct ¶
func (dl DistinctList) Distinct() DistinctList
type PairFormatter ¶
type PairFormatter string
type Row ¶
type Row struct {
Table *Table
DataList DistinctList
}
func (Row) List ¶
func (r Row) List() DistinctList
type Table ¶
type Table struct {
Columns []string
Rows [][]interface{}
DefaultValue interface{}
}
func (*Table) ColumnIndex ¶
func (*Table) Iterator ¶
func (t *Table) Iterator() *TableIterator
func (*Table) PrettyPrint ¶
func (t *Table) PrettyPrint()
type TableIterator ¶
type TableIterator struct {
// contains filtered or unexported fields
}
func (*TableIterator) HasNext ¶
func (it *TableIterator) HasNext() bool
func (*TableIterator) Next ¶
func (it *TableIterator) Next() (index int, data map[string]interface{})
Click to show internal directories.
Click to hide internal directories.