Documentation ¶
Index ¶
- type ByteArray
- func (obj *ByteArray) AddBack(value byte, qty int)
- func (obj *ByteArray) AddFront(value byte, qty int)
- func (obj ByteArray) At(pos int) byte
- func (obj *ByteArray) Init(len int) *ByteArray
- func (obj ByteArray) IsEmpty(data byte) bool
- func (obj ByteArray) LastIndex() int
- func (obj ByteArray) Len() int
- func (obj ByteArray) Part(init int, end int) ByteArray
- func (obj *ByteArray) PopBack(qty int)
- func (obj *ByteArray) PopFront(qty int)
- func (obj *ByteArray) PushBack(data []byte)
- func (obj *ByteArray) PushBackSingle(data byte)
- func (obj *ByteArray) PushFront(data []byte)
- func (obj *ByteArray) PushFrontSingle(data byte)
- func (obj *ByteArray) Reverse()
- func (obj ByteArray) ToHex() string
- type DemoTokenInfo
- type TokenInfo
- type Types
- func (o Types) Bool(v bool) *bool
- func (o Types) Float32(v float32) *float32
- func (o Types) Float64(v float64) *float64
- func (o Types) Int(v int) *int
- func (o Types) Int16(v int16) *int16
- func (o Types) Int32(v int32) *int32
- func (o Types) Int64(v int64) *int64
- func (o Types) Int8(v int8) *int8
- func (o Types) String(v string) *string
- func (o Types) Uint(v uint) *uint
- func (o Types) Uint16(v uint16) *uint16
- func (o Types) Uint32(v uint32) *uint32
- func (o Types) Uint64(v uint64) *uint64
- func (o Types) Uint8(v uint8) *uint8
- type Util
- func (obj Util) JsonScript(m *interface{}) *string
- func (obj Util) Random(min, max, unixNano int64) int64
- func (obj Util) Round(value float64, decimals int) float64
- func (obj Util) SetValue(dst interface{}, src interface{})
- func (obj Util) ToMoney(amount float64) uint64
- func (obj Util) ToPercent(value uint32) float64
- func (obj Util) Tracev4() string
- type UtilFindReplaceKeys
- type UtilRegexp
- type UtilString
- func (obj UtilString) FormatBool(value bool) string
- func (obj UtilString) FormatFloat(value float64, precision int) string
- func (obj *UtilString) FromInt(value int64) string
- func (obj *UtilString) FromInt16(value int16) string
- func (obj *UtilString) FromInt32(value int32) string
- func (obj *UtilString) FromInt8(value int8) string
- func (obj UtilString) FromUint(value uint64) string
- func (obj UtilString) FromUint16(value uint16) string
- func (obj UtilString) FromUint32(value uint32) string
- func (obj UtilString) FromUint8(value uint8) string
- func (obj *UtilString) HexFormat(buffer []byte, separator string) string
- func (obj UtilString) Replace(value string, char string) string
- func (obj UtilString) Split(value string, sep string) []string
- func (obj UtilString) StartsWith(value string, prefix string) bool
- func (obj UtilString) ToBool(ok *bool) bool
- func (obj UtilString) ToFloat(ok *bool) float64
- func (obj UtilString) ToInt32(ok *bool) int32
- func (obj UtilString) ToInt64(ok *bool) int64
- func (obj *UtilString) ToLower() string
- func (obj UtilString) ToUint32(ok *bool) uint32
- func (obj UtilString) ToUint64(ok *bool) uint64
- func (obj *UtilString) ToUpper() string
- type UtilStringArray
- type UtilToken
- func (o UtilToken) Build(prefix string, currencyId string, playerId string, separator string) string
- func (o UtilToken) BuildDemo(prefix string, currencyId string, separator string) string
- func (o UtilToken) Parse(token string, separator string) TokenInfo
- func (o UtilToken) ParseDemo(token string, separator string) DemoTokenInfo
- type UtilsMap
- func (o UtilsMap) ArrayToMap(in interface{}) (map[string]string, error)
- func (o UtilsMap) ErrorToStruct(in error, out interface{}) error
- func (o UtilsMap) GetMapValue(in map[string]interface{}, key string) map[string]interface{}
- func (o UtilsMap) GetStringValue(in map[string]interface{}, key string) string
- func (o UtilsMap) InterfaceToStruct(in interface{}, out interface{}) error
- func (o UtilsMap) MapToArray(in interface{}) []interface{}
- func (o UtilsMap) MapToString(in interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteArray ¶
type ByteArray struct {
Buffer []byte
}
func (*ByteArray) PushBackSingle ¶
func (*ByteArray) PushFrontSingle ¶
type DemoTokenInfo ¶
type UtilFindReplaceKeys ¶
type UtilFindReplaceKeys struct { }
func (UtilFindReplaceKeys) ReplaceKeys ¶
func (obj UtilFindReplaceKeys) ReplaceKeys(body string, sent map[string]interface{}) string
type UtilRegexp ¶
type UtilRegexp struct { }
func (UtilRegexp) ReplaceKeys ¶
func (obj UtilRegexp) ReplaceKeys(body string, sent map[string]string) string
type UtilString ¶
type UtilString struct {
Value string
}
func (UtilString) FormatBool ¶
func (obj UtilString) FormatBool(value bool) string
func (UtilString) FormatFloat ¶
func (obj UtilString) FormatFloat(value float64, precision int) string
func (*UtilString) FromInt ¶
func (obj *UtilString) FromInt(value int64) string
func (*UtilString) FromInt16 ¶
func (obj *UtilString) FromInt16(value int16) string
func (*UtilString) FromInt32 ¶
func (obj *UtilString) FromInt32(value int32) string
func (*UtilString) FromInt8 ¶
func (obj *UtilString) FromInt8(value int8) string
func (UtilString) FromUint ¶
func (obj UtilString) FromUint(value uint64) string
func (UtilString) FromUint16 ¶
func (obj UtilString) FromUint16(value uint16) string
func (UtilString) FromUint32 ¶
func (obj UtilString) FromUint32(value uint32) string
func (UtilString) FromUint8 ¶
func (obj UtilString) FromUint8(value uint8) string
func (*UtilString) HexFormat ¶
func (obj *UtilString) HexFormat(buffer []byte, separator string) string
func (UtilString) StartsWith ¶
func (obj UtilString) StartsWith(value string, prefix string) bool
func (UtilString) ToBool ¶
func (obj UtilString) ToBool(ok *bool) bool
func (UtilString) ToFloat ¶
func (obj UtilString) ToFloat(ok *bool) float64
func (UtilString) ToInt32 ¶
func (obj UtilString) ToInt32(ok *bool) int32
func (UtilString) ToInt64 ¶
func (obj UtilString) ToInt64(ok *bool) int64
func (*UtilString) ToLower ¶
func (obj *UtilString) ToLower() string
func (UtilString) ToUint32 ¶
func (obj UtilString) ToUint32(ok *bool) uint32
func (UtilString) ToUint64 ¶
func (obj UtilString) ToUint64(ok *bool) uint64
func (*UtilString) ToUpper ¶
func (obj *UtilString) ToUpper() string
type UtilStringArray ¶
type UtilStringArray struct {
Value []string
}
func (*UtilStringArray) Append ¶
func (obj *UtilStringArray) Append(item interface{})
func (*UtilStringArray) AppendQuoted ¶
func (obj *UtilStringArray) AppendQuoted(item interface{})
func (UtilStringArray) ToInPattern ¶
func (obj UtilStringArray) ToInPattern(key string) string
func (*UtilStringArray) ToString ¶
func (obj *UtilStringArray) ToString(separator string) string
type UtilsMap ¶
type UtilsMap struct { }
func (UtilsMap) ArrayToMap ¶
func (UtilsMap) ErrorToStruct ¶
func (UtilsMap) GetMapValue ¶
func (UtilsMap) GetStringValue ¶
func (UtilsMap) InterfaceToStruct ¶
func (UtilsMap) MapToArray ¶
func (o UtilsMap) MapToArray(in interface{}) []interface{}
func (UtilsMap) MapToString ¶
Click to show internal directories.
Click to hide internal directories.