Documentation ¶
Index ¶
- Constants
- func GZipCompress(p []byte) ([]byte, error)
- func GZipDecompress(binary []byte) ([]byte, error)
- func IsUUID(id string) bool
- func MarshalMsgpack(v interface{}) ([]byte, error)
- func NewUUID() uuid.UUID
- func PKCS7Padding(data []byte, blockSizes ...int) []byte
- func ParseFloat64(value interface{}, args ...float64) float64
- func ParseInt(value interface{}, args ...int) int
- func ParseInt64(value interface{}, args ...int64) int64
- func Split(buf []byte, lim int) [][]byte
- func UUIDWithString(text string) uuid.UUID
- func UnPKCS7Padding(data []byte) []byte
- func UnmarshalMsgpack(data []byte, val interface{}) error
- type Integer
- func (x Integer) Add(y Integer) (v Integer)
- func (x Integer) Cmp(y Integer) int
- func (x Integer) Div(y int) (v Integer)
- func (x Integer) MarshalJSON() ([]byte, error)
- func (x Integer) MarshalMsgpack() ([]byte, error)
- func (x Integer) Mul(y int) (v Integer)
- func (d *Integer) Scan(value interface{}) error
- func (x Integer) Sign() int
- func (x Integer) String() string
- func (x Integer) Sub(y Integer) (v Integer)
- func (x Integer) ToDecimal() decimal.Decimal
- func (x *Integer) UnmarshalJSON(b []byte) error
- func (x *Integer) UnmarshalMsgpack(data []byte) error
- func (d Integer) Value() (driver.Value, error)
Constants ¶
View Source
const Precision = 8
Variables ¶
This section is empty.
Functions ¶
func GZipCompress ¶ added in v0.1.11
GZipCompress gzip compress
func GZipDecompress ¶ added in v0.1.11
GZipDecompress gzip decompress
func MarshalMsgpack ¶
func ParseFloat64 ¶
ParseFloat64 parse interface to float64
func ParseInt64 ¶
ParseInt64 parse interface to int64
func UUIDWithString ¶ added in v0.0.3
UUIDWithString generate uuid with text
func UnmarshalMsgpack ¶
Types ¶
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
var Zero Integer
func NewInteger ¶
func NewIntegerFromString ¶
func (Integer) MarshalJSON ¶
func (Integer) MarshalMsgpack ¶
func (*Integer) Scan ¶ added in v0.0.7
Scan implements the sql.Scanner interface for database deserialization.
func (*Integer) UnmarshalJSON ¶
func (*Integer) UnmarshalMsgpack ¶
Click to show internal directories.
Click to hide internal directories.