Documentation ¶
Index ¶
- func Abs(a uint64, b uint64) uint64
- func AddressToHex(addr string) string
- func CheckEmpty(s interface{}) error
- func CompressToGzip(input []byte) ([]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 Find[T any](slice []T, predicate func(T) bool) (T, bool)
- func GetFieldValueByName(s interface{}, fieldName string) interface{}
- 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 SetDefaultValues(s interface{})
- func StructToMap(input interface{}) map[string]interface{}
- func TimestampMilli() uint64
- func To256Bits(b []byte) []byte
- func ToStringSlice(slice []interface{}) []string
- 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
- func WriteToCSV(filePath string, data [][]string) 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 GetFieldValueByName ¶ added in v1.2.16
func GetFieldValueByName(s interface{}, fieldName string) interface{}
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 SetDefaultValues ¶ added in v1.2.16
func SetDefaultValues(s interface{})
func StructToMap ¶ added in v1.2.0
func StructToMap(input interface{}) map[string]interface{}
func TimestampMilli ¶
func TimestampMilli() uint64
func ToStringSlice ¶ added in v1.2.16
func ToStringSlice(slice []interface{}) []string
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.
func WriteToCSV ¶ added in v1.2.16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.