Documentation
¶
Index ¶
- Variables
- func BoolToUint32(b bool) (i uint32, err error)
- func CamelCase(s string) string
- func Get(ctx context.Context, url string, result interface{}, opts ...Option) error
- func Int32ToByteArr(i int32) (bytes []byte, err error)
- func Int64ToByteArr(i int64) (bytes []byte, err error)
- func Int64ToStr(i int64) (s string, err error)
- func Int64ToTimestamp(i int64) (string, error)
- func Lcfirst(str string) string
- func Post(ctx context.Context, url string, param map[string]interface{}, ...) error
- func Snake(s string) string
- func StrToBool(str string) (b bool, err error)
- func StrToInt(s string) (i int, err error)
- func StrToInt32(s string) (i int32, err error)
- func StrToInt64(s string) (i int64, err error)
- func StrToUin32(s string) (i uint32, err error)
- func StrToUin64(s string) (i uint64, err error)
- func Ucfirst(str string) string
- func Uint32ToBool(i uint32) (b bool, err error)
- func Uint32ToByteArr(i uint32) (bytes []byte, err error)
- func Uint32ToStr(i uint32) (s string, err error)
- func Uint64ToByteArr(i uint64) (bytes []byte, err error)
- func Uint64ToStr(i uint64) (s string, err error)
- func WhoCalling() string
- func WrapRecover(f func() error) error
- type IHttp
- type Method
- type Option
- type Parameter
- type RawBytes
- type Scanner
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var Bool boolType
Functions ¶
func Post ¶
func Post(ctx context.Context, url string, param map[string]interface{}, result interface{}, opts ...Option) error
Post
func WrapRecover ¶
Types ¶
type IHttp ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithHeader ¶
func WithMethod ¶
func WithPreDeal ¶
func WithTimeout ¶
type RawBytes ¶
type RawBytes []byte
RawBytes is a byte slice that holds a reference to memory owned by the database itself. After a Scan into a RawBytes, the slice is only valid until the next call to Next, Scan, or Close.
type Scanner ¶
type Scanner interface {
// Scan assigns a value from a database driver.
//
// The src value will be of one of the following types:
//
// int64
// float64
// bool
// []byte
// string
// time.Time
// nil - for NULL values
//
// An error should be returned if the value cannot be stored
// without loss of information.
//
// Reference types such as []byte are only valid until the next call to Scan
// and should not be retained. Their underlying memory is owned by the driver.
// If retention is necessary, copy their values before the next call to Scan.
Scan(src interface{}) error
}
Click to show internal directories.
Click to hide internal directories.