Versions in this module Expand all Collapse all v0 v0.1.4 Oct 21, 2022 Changes in this version + func SetCookie(r *http.Request, name, value string) v0.1.3 Oct 19, 2021 Changes in this version + func SetURLQuery(URL string, query map[string]string) string v0.1.2 Aug 18, 2021 v0.1.1 May 17, 2021 v0.1.0 May 17, 2021 Changes in this version + func AddCookie(r *http.Request, name, value string) + func CommaErrorFormatter(es []error) error + func DelCookie(r *http.Request, name string) + func Errorf(code int, format string, args ...interface{}) error + func GetClientIP(r *http.Request) string + func GetCookie(r *http.Request, name string) string + func GetLocalIP() string + func ListErrorFormatter(es []error) error + func ToJson(v interface{}) []byte + func ToPrettyJson(v interface{}) []byte + func WrapError(code int, err error) error + type BufferPool struct + func NewBufferPool() *BufferPool + func (bp *BufferPool) Get() *bytes.Buffer + func (bp *BufferPool) Put(b *bytes.Buffer) + type BytesPool struct + func NewBytesPool(size int) *BytesPool + func (bp *BytesPool) Get() []byte + func (bp *BytesPool) Put(b []byte) + type Error struct + Code int + File string + Func string + Line int + func (e *Error) Unwrap() error + type ErrorFormatter func([]error) error + type Group struct + Logger *log.Logger + func (g *Group) Error(args ...interface{}) error + func (g *Group) Go(f func() interface{}) + func (g *Group) Result() []interface{}