Documentation ¶
Index ¶
- func AddressToHex(addr string) string
- func CheckEmpty(s interface{}) error
- func CompressToGzip(inputText string) ([]byte, error)
- func Contains(s []string, str string) bool
- func CopyStructValues(src, dst interface{}) error
- func DecompressGzip(compressedData []byte) ([]byte, error)
- func EnsureNotEmpty(s interface{}) any
- func IfThenElse[T any](condition bool, a T, b T) T
- func IsAlphaLowerNumericDot(str string) bool
- func IsAlphaNumericDot(str string) bool
- func IsAlphaNumericDotNoNumberPrefix(str string) bool
- func IsDomain(str string) bool
- func IsNumericInt(s string) bool
- func Lcg(seed uint64) *big.Int
- func ParseQueryString(c *gin.Context) (*[]byte, error)
- func RandomAplhaNumString(length int) string
- func RandomHexString(length int) string
- func RandomString(length int) string
- func ReadJSONFromFile(filePath string) (map[string]interface{}, error)
- func SafePointerValue[T any](b *T, defaultValue T) T
- func StructToMap(input interface{}) map[string]interface{}
- func TimestampMilli() uint64
- func To256Bits(b []byte) []byte
- func ToUint256(num *big.Int) []byte
- func Uint64ToUint256(num uint64) []byte
- func UuidToBytes(uuid string) []byte
- func WriteJSONToFile(filePath string, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToHex ¶ added in v1.2.0
func CheckEmpty ¶ added in v1.2.0
func CheckEmpty(s interface{}) error
func CompressToGzip ¶ added in v1.2.0
func CopyStructValues ¶ added in v1.2.0
func CopyStructValues(src, dst interface{}) error
func DecompressGzip ¶ added in v1.2.0
func EnsureNotEmpty ¶ added in v1.2.0
func EnsureNotEmpty(s interface{}) any
func IfThenElse ¶
func IsAlphaLowerNumericDot ¶
func IsAlphaNumericDot ¶
func IsNumericInt ¶ added in v1.2.0
func RandomAplhaNumString ¶ added in v1.2.0
func RandomHexString ¶ added in v1.2.0
func RandomString ¶ added in v1.2.0
func ReadJSONFromFile ¶ added in v1.2.0
func SafePointerValue ¶ added in v1.2.0
func SafePointerValue[T any](b *T, defaultValue T) T
func StructToMap ¶ added in v1.2.0
func StructToMap(input interface{}) map[string]interface{}
func TimestampMilli ¶
func TimestampMilli() uint64
func Uint64ToUint256 ¶ added in v1.2.0
func UuidToBytes ¶ added in v1.2.0
func WriteJSONToFile ¶ added in v1.2.0
writeJSON writes the given map as JSON to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.