Documentation ¶
Index ¶
- Variables
- func AscendingIntSort(arr intArr) []int
- func AscendingStringSort(arr stringArr) []string
- func CheckInt(old, new int) int
- func CheckInt16(old, new int16) int16
- func CheckInt32(old, new int32) int32
- func CheckInt64(old, new int64) int64
- func CheckInt8(old, new int8) int8
- func CheckJson(old, new json.RawMessage) (json.RawMessage, error)
- func CheckString(old, new string) string
- func CheckUint16(old, new uint16) uint16
- func CheckUint32(old, new uint32) uint32
- func CheckUint64(old, new uint64) uint64
- func CheckUint8(old, new uint8) uint8
- func DescendingIntSort(arr intArr) []int
- func DescendingStringSort(arr stringArr) []string
- func FormatUnixTimestampToPgComparisonValue(timestamp int) string
- func GenerateHashFromString(str string) string
- func GeneratePasswordHash(lg *zap.SugaredLogger, str string, salt string) string
- func GetRandomString(n int) string
- func RemoveInt16DuplicatesUnordered(elements []int16) []int16
- func RemoveInt32DuplicatesUnordered(elements []int32) []int32
- func RemoveInt64DuplicatesUnordered(elements []int64) []int64
- func RemoveInt8DuplicatesUnordered(elements []int8) []int8
- func RemoveIntDuplicatesUnordered(elements []int) []int
- func RemoveSpecifiedInt16FromSlice(elements []int16, toRemove int16, another ...int16) []int16
- func RemoveSpecifiedInt32FromSlice(elements []int32, toRemove int32, another ...int32) []int32
- func RemoveSpecifiedInt64FromSlice(elements []int64, toRemove int64, another ...int64) []int64
- func RemoveSpecifiedInt8FromSlice(elements []int8, toRemove int8, another ...int8) []int8
- func RemoveSpecifiedIntFromSlice(elements []int, toRemove int, another ...int) []int
- func RemoveSpecifiedStringFromSlice(elements []string, toRemove string, another ...string) []string
- func RemoveStrDuplicatesUnordered(elements []string) []string
- func SendSlackHook(url, channel, username, message string) error
- func UnsafeInterfaceByteSize(res interface{}) float32
- func ValidateEmail(email string) bool
- func ValidatePhoneNumber(phone string) bool
- func ValidateUserUsername(r string) bool
- func VerifyBitwiseComparison(check uint64, roles ...uint64) bool
- type Float32Array
- type Float64Array
- type Int16Array
- type Int32Array
- type Int64Array
- type Int8Array
- type IntArray
- type PropertyMap
- type StringArray
- type Uint16Array
- type Uint32Array
- type Uint64Array
- type Uint8Array
- type UintArray
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AscendingIntSort ¶
func AscendingIntSort(arr intArr) []int
func AscendingStringSort ¶
func AscendingStringSort(arr stringArr) []string
func CheckInt16 ¶
func CheckInt32 ¶
func CheckInt64 ¶
func CheckJson ¶
func CheckJson(old, new json.RawMessage) (json.RawMessage, error)
func CheckString ¶
func CheckUint16 ¶
func CheckUint32 ¶
func CheckUint64 ¶
func CheckUint8 ¶
func DescendingIntSort ¶
func DescendingIntSort(arr intArr) []int
func DescendingStringSort ¶
func DescendingStringSort(arr stringArr) []string
func GenerateHashFromString ¶
func GeneratePasswordHash ¶
func GeneratePasswordHash(lg *zap.SugaredLogger, str string, salt string) string
func GetRandomString ¶
returns random symbol string with specified length = n
func SendSlackHook ¶
func UnsafeInterfaceByteSize ¶
func UnsafeInterfaceByteSize(res interface{}) float32
func ValidateEmail ¶
func ValidatePhoneNumber ¶
func ValidateUserUsername ¶
func VerifyBitwiseComparison ¶
Types ¶
type Float32Array ¶
type Float32Array []float32
func (Float32Array) Len ¶
func (s Float32Array) Len() int
func (Float32Array) Less ¶
func (s Float32Array) Less(i, j int) bool
func (Float32Array) Swap ¶
func (s Float32Array) Swap(i, j int)
type Float64Array ¶
type Float64Array []float64
func (Float64Array) Len ¶
func (s Float64Array) Len() int
func (Float64Array) Less ¶
func (s Float64Array) Less(i, j int) bool
func (Float64Array) Swap ¶
func (s Float64Array) Swap(i, j int)
type Int16Array ¶
type Int16Array []int16
func (Int16Array) Len ¶
func (s Int16Array) Len() int
func (Int16Array) Less ¶
func (s Int16Array) Less(i, j int) bool
func (Int16Array) Swap ¶
func (s Int16Array) Swap(i, j int)
type Int32Array ¶
type Int32Array []int32
func (Int32Array) Len ¶
func (s Int32Array) Len() int
func (Int32Array) Less ¶
func (s Int32Array) Less(i, j int) bool
func (Int32Array) Swap ¶
func (s Int32Array) Swap(i, j int)
type Int64Array ¶
type Int64Array []int64
func (Int64Array) Len ¶
func (s Int64Array) Len() int
func (Int64Array) Less ¶
func (s Int64Array) Less(i, j int) bool
func (Int64Array) Swap ¶
func (s Int64Array) Swap(i, j int)
type PropertyMap ¶
type PropertyMap map[string]interface{}
jsonb
func (*PropertyMap) Scan ¶
func (p *PropertyMap) Scan(source json.RawMessage) error
type StringArray ¶
type StringArray []string
func (StringArray) Len ¶
func (s StringArray) Len() int
func (StringArray) Less ¶
func (s StringArray) Less(i, j int) bool
func (StringArray) Swap ¶
func (s StringArray) Swap(i, j int)
type Uint16Array ¶
type Uint16Array []uint16
func (Uint16Array) Len ¶
func (s Uint16Array) Len() int
func (Uint16Array) Less ¶
func (s Uint16Array) Less(i, j int) bool
func (Uint16Array) Swap ¶
func (s Uint16Array) Swap(i, j int)
type Uint32Array ¶
type Uint32Array []uint32
func (Uint32Array) Len ¶
func (s Uint32Array) Len() int
func (Uint32Array) Less ¶
func (s Uint32Array) Less(i, j int) bool
func (Uint32Array) Swap ¶
func (s Uint32Array) Swap(i, j int)
type Uint64Array ¶
type Uint64Array []uint64
func (Uint64Array) Len ¶
func (s Uint64Array) Len() int
func (Uint64Array) Less ¶
func (s Uint64Array) Less(i, j int) bool
func (Uint64Array) Swap ¶
func (s Uint64Array) Swap(i, j int)
type Uint8Array ¶
type Uint8Array []uint8
func (Uint8Array) Len ¶
func (s Uint8Array) Len() int
func (Uint8Array) Less ¶
func (s Uint8Array) Less(i, j int) bool
func (Uint8Array) Swap ¶
func (s Uint8Array) Swap(i, j int)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
datastructures
|
|
Package exit provide functionality to handle os signal (SIGINT, SIGKILL, SIGTERM) mainly to handle termination of service
|
Package exit provide functionality to handle os signal (SIGINT, SIGKILL, SIGTERM) mainly to handle termination of service |
mq
|
|
Click to show internal directories.
Click to hide internal directories.