Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2019 Changes in this version + var ErrArgs = errors.New("<Ormer> args error may be empty") + var ErrBreaker = errors.New("Fuse") + var ErrMultiRows = errors.New("<QuerySeter> return multi rows") + var ErrNoRows = errors.New("<QuerySeter> no row found") + var ErrNotImplement = errors.New("have not implement") + var ErrStmtClosed = errors.New("<QuerySeter> stmt already closed") + var ErrTxDone = errors.New("<Ormer.Commit/Rollback> transaction not begin") + var ErrTxHasBegan = errors.New("<Ormer.Begin> transaction already begin") + func InSlice(array interface{}, item interface{}) bool + func Memcpy(dest interface{}, src interface{}) (err error) + func Name(obj interface{}) string + func NewMap(dst interface{}) error + func NewSlice(dsc interface{}, len int) error + func RuntimePointer() interface + func SetRunStack(rs runtimeStack) + func SliceDelete(arr interface{}, indexArr ...int) error + func SliceSort(array interface{}, field string, reverse ...bool) + func SliceSortReverse(array interface{}, field string) + func Testing() bool + type HTTPRequest struct + func HttpDelete(url string) *HTTPRequest + func HttpGet(url string) *HTTPRequest + func HttpHead(url string) *HTTPRequest + func HttpPost(url string) *HTTPRequest + func HttpPut(url string) *HTTPRequest + func (b *HTTPRequest) Body(data interface{}) *HTTPRequest + func (b *HTTPRequest) Bytes() ([]byte, error) + func (b *HTTPRequest) Debug(isdebug bool) *HTTPRequest + func (b *HTTPRequest) DoRequest() (resp *http.Response, err error) + func (b *HTTPRequest) DumpBody(isdump bool) *HTTPRequest + func (b *HTTPRequest) DumpRequest() []byte + func (b *HTTPRequest) GetRequest() *http.Request + func (b *HTTPRequest) Header(key, value string) *HTTPRequest + func (b *HTTPRequest) JSONBody(obj interface{}) (*HTTPRequest, error) + func (b *HTTPRequest) Param(key, value string) *HTTPRequest + func (b *HTTPRequest) PostFile(formname, filename string) *HTTPRequest + func (b *HTTPRequest) Response() (*http.Response, error) + func (b *HTTPRequest) Retries(times int) *HTTPRequest + func (b *HTTPRequest) SetBasicAuth(username, password string) *HTTPRequest + func (b *HTTPRequest) SetCheckRedirect(redirect func(req *http.Request, via []*http.Request) error) *HTTPRequest + func (b *HTTPRequest) SetCookie(cookie *http.Cookie) *HTTPRequest + func (b *HTTPRequest) SetEnableCookie(enable bool) *HTTPRequest + func (b *HTTPRequest) SetHost(host string) *HTTPRequest + func (b *HTTPRequest) SetProtocolVersion(vers string) *HTTPRequest + func (b *HTTPRequest) SetProxy(proxy func(*http.Request) (*url.URL, error)) *HTTPRequest + func (b *HTTPRequest) SetTLSClientConfig(config *tls.Config) *HTTPRequest + func (b *HTTPRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *HTTPRequest + func (b *HTTPRequest) SetTransport(transport http.RoundTripper) *HTTPRequest + func (b *HTTPRequest) SetUserAgent(useragent string) *HTTPRequest + func (b *HTTPRequest) Setting(setting _GotreeHTTPSettings) *HTTPRequest + func (b *HTTPRequest) String() (string, error) + func (b *HTTPRequest) ToFile(filename string) error + func (b *HTTPRequest) ToJSON(v interface{}) error + func (b *HTTPRequest) ToXML(v interface{}) error + type TaskGroup struct + func NewGroup() *TaskGroup + func (this *TaskGroup) Add(fun func() error) + func (this *TaskGroup) Gotree() *TaskGroup + func (this *TaskGroup) Wait(numGoroutine ...int) error + type VoidValue struct + Void byte