utils

package
v0.0.0-...-fb2c4cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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) AddBack

func (obj *ByteArray) AddBack(value byte, qty int)

func (*ByteArray) AddFront

func (obj *ByteArray) AddFront(value byte, qty int)

func (ByteArray) At

func (obj ByteArray) At(pos int) byte

func (*ByteArray) Init

func (obj *ByteArray) Init(len int) *ByteArray

func (ByteArray) IsEmpty

func (obj ByteArray) IsEmpty(data byte) bool

func (ByteArray) LastIndex

func (obj ByteArray) LastIndex() int

func (ByteArray) Len

func (obj ByteArray) Len() int

func (ByteArray) Part

func (obj ByteArray) Part(init int, end int) ByteArray

func (*ByteArray) PopBack

func (obj *ByteArray) PopBack(qty int)

func (*ByteArray) PopFront

func (obj *ByteArray) PopFront(qty int)

func (*ByteArray) PushBack

func (obj *ByteArray) PushBack(data []byte)

func (*ByteArray) PushBackSingle

func (obj *ByteArray) PushBackSingle(data byte)

func (*ByteArray) PushFront

func (obj *ByteArray) PushFront(data []byte)

func (*ByteArray) PushFrontSingle

func (obj *ByteArray) PushFrontSingle(data byte)

func (*ByteArray) Reverse

func (obj *ByteArray) Reverse()

func (ByteArray) ToHex

func (obj ByteArray) ToHex() string

type DemoTokenInfo

type DemoTokenInfo struct {
	IsOk       bool
	Prefix     string
	CurrencyId string
	Uui        string
	Error      string
}

type TokenInfo

type TokenInfo struct {
	IsOk       bool
	Prefix     string
	CurrencyId string
	PlayerId   string
	Error      string
}

type Types

type Types struct {
}

func (Types) Bool

func (o Types) Bool(v bool) *bool

func (Types) Float32

func (o Types) Float32(v float32) *float32

func (Types) Float64

func (o Types) Float64(v float64) *float64

func (Types) Int

func (o Types) Int(v int) *int

func (Types) Int16

func (o Types) Int16(v int16) *int16

func (Types) Int32

func (o Types) Int32(v int32) *int32

func (Types) Int64

func (o Types) Int64(v int64) *int64

func (Types) Int8

func (o Types) Int8(v int8) *int8

func (Types) String

func (o Types) String(v string) *string

func (Types) Uint

func (o Types) Uint(v uint) *uint

func (Types) Uint16

func (o Types) Uint16(v uint16) *uint16

func (Types) Uint32

func (o Types) Uint32(v uint32) *uint32

func (Types) Uint64

func (o Types) Uint64(v uint64) *uint64

func (Types) Uint8

func (o Types) Uint8(v uint8) *uint8

type Util

type Util struct {
}

func (Util) JsonScript

func (obj Util) JsonScript(m *interface{}) *string

func (Util) Random

func (obj Util) Random(min, max, unixNano int64) int64

func (Util) Round

func (obj Util) Round(value float64, decimals int) float64

func (Util) SetValue

func (obj Util) SetValue(dst interface{}, src interface{})

func (Util) ToMoney

func (obj Util) ToMoney(amount float64) uint64

func (Util) ToPercent

func (obj Util) ToPercent(value uint32) float64

func (Util) Tracev4

func (obj Util) Tracev4() string

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) Replace

func (obj UtilString) Replace(value string, char string) string

func (UtilString) Split

func (obj UtilString) Split(value string, sep 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 UtilToken

type UtilToken struct {
}

func (UtilToken) Build

func (o UtilToken) Build(prefix string, currencyId string, playerId string, separator string) string

func (UtilToken) BuildDemo

func (o UtilToken) BuildDemo(prefix string, currencyId string, separator string) string

func (UtilToken) Parse

func (o UtilToken) Parse(token string, separator string) TokenInfo

func (UtilToken) ParseDemo

func (o UtilToken) ParseDemo(token string, separator string) DemoTokenInfo

type UtilsMap

type UtilsMap struct {
}

func (UtilsMap) ArrayToMap

func (o UtilsMap) ArrayToMap(in interface{}) (map[string]string, error)

func (UtilsMap) ErrorToStruct

func (o UtilsMap) ErrorToStruct(in error, out interface{}) error

func (UtilsMap) GetMapValue

func (o UtilsMap) GetMapValue(in map[string]interface{}, key string) map[string]interface{}

func (UtilsMap) GetStringValue

func (o UtilsMap) GetStringValue(in map[string]interface{}, key string) string

func (UtilsMap) InterfaceToStruct

func (o UtilsMap) InterfaceToStruct(in interface{}, out interface{}) error

func (UtilsMap) MapToArray

func (o UtilsMap) MapToArray(in interface{}) []interface{}

func (UtilsMap) MapToString

func (o UtilsMap) MapToString(in interface{}) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL