Documentation ¶
Index ¶
- Variables
- func Atoi(s string) int
- func Atol(s string) int64
- func Atou(s string) uint
- func Atoul(s string) uint64
- func Bool(b bool) *bool
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func New(v reflect.Value) interface{}
- func NewFromType(rt reflect.Type) interface{}
- func String(s string) *string
- func StringCutLeft(s string, offset int) string
- func StringCutLeftExp(s string, cutset string, n int) string
- func StringCutRight(s string, offset int) string
- func StringCutRightExp(s string, cutset string, n int) string
- func StringIndexAny(s, cutset string, n int) int
- func StructTravel(v interface{}, qi QueryInterface, ...) interface{}
- func StructTravelFunc(v reflect.Value, t reflect.StructField, qi QueryInterface)
- func StructTravelSet(v interface{}, qi QueryInterface) interface{}
- func Uint32(i uint32) *uint32
- func Uint64(i uint64) *uint64
- type Pool
- type PoolElem
- type PoolElemInterface
- type QueryInterface
- type SafeSet
- func (this *SafeSet) Has(v interface{}) bool
- func (this *SafeSet) Insert(v interface{})
- func (this *SafeSet) Range(callback SetCallback, vs ...interface{})
- func (this *SafeSet) Remove(v interface{})
- func (this *SafeSet) Size() int
- func (this *SafeSet) ToSlice() []interface{}
- func (this *SafeSet) Wake()
- type Set
- type SetCallback
- type SetInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STRING_PTR = reflect.TypeOf(String("")) INT32_PTR = reflect.TypeOf(Int32(int32(0))) INT64_PTR = reflect.TypeOf(Int64(int64(0))) UINT32_PTR = reflect.TypeOf(Uint32(uint32(0))) UINT64_PTR = reflect.TypeOf(Uint64(uint64(0))) BOOL_PTR = reflect.TypeOf(Bool(false)) STRING = reflect.TypeOf("") INT32 = reflect.TypeOf(int32(0)) INT64 = reflect.TypeOf(int64(0)) UINT32 = reflect.TypeOf(uint32(0)) UINT64 = reflect.TypeOf(uint64(0)) BOOL = reflect.TypeOf(false) )
Functions ¶
func NewFromType ¶
func StringCutLeft ¶
func StringCutRight ¶
func StringIndexAny ¶
func StructTravel ¶
func StructTravel(v interface{}, qi QueryInterface, f func(v reflect.Value, t reflect.StructField, qi QueryInterface)) interface{}
func StructTravelFunc ¶
func StructTravelFunc(v reflect.Value, t reflect.StructField, qi QueryInterface)
func StructTravelSet ¶
func StructTravelSet(v interface{}, qi QueryInterface) interface{}
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(callback func(*Pool) (PoolElemInterface, error), maxIdle, maxActive, timer int32) *Pool
func (*Pool) Get ¶
func (this *Pool) Get() (PoolElemInterface, error)
func (*Pool) Put ¶
func (this *Pool) Put(elem PoolElemInterface)
type PoolElemInterface ¶
type QueryInterface ¶
type QueryInterface interface {
Query(t reflect.StructField) string
}
type SafeSet ¶
type SafeSet struct {
// contains filtered or unexported fields
}
func NewSafeSet ¶
func NewSafeSet() *SafeSet
func (*SafeSet) Range ¶
func (this *SafeSet) Range(callback SetCallback, vs ...interface{})
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Range ¶
func (this *Set) Range(callback SetCallback, vs ...interface{})
type SetCallback ¶
type SetCallback func(v interface{}, vs ...interface{})
type SetInterface ¶
type SetInterface interface { Insert(v interface{}) Has(v interface{}) bool Remove(v interface{}) Range(callback SetCallback, vs ...interface{}) Size() int ToSlice() []interface{} Wake() //防止读锁一直占用,而写锁被卡住 }
Directories ¶
Path | Synopsis |
---|---|
beego
|
|
httplib
Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md
|
Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md |
Click to show internal directories.
Click to hide internal directories.