util

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHex

func AddHex(s string) string

func BoolFromInterface

func BoolFromInterface(i interface{}) bool

Interface

func BytesToHex

func BytesToHex(b []byte) string

func CallerName

func CallerName() string

Func

func GetFuncName

func GetFuncName() string

func GetStringValueByFieldName

func GetStringValueByFieldName(n interface{}, fieldName string) (string, bool)

func HexToBytes

func HexToBytes(s string) []byte

func IntInSlice added in v0.5.0

func IntInSlice(a int, list []int) bool

func IntToHex

func IntToHex(i interface{}) string

func InterfaceToString

func InterfaceToString(i interface{}) string

func PrintJson added in v0.5.0

func PrintJson(j interface{})

func StringInSlice added in v0.6.0

func StringInSlice(a string, list []string) bool

func TrimHex

func TrimHex(s string) string

func UnmarshalToAnything

func UnmarshalToAnything(r interface{}, raw interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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