Documentation
¶
Index ¶
- func AnyToDecimal(val any) (*gnum.Decimal, error)
- func AnyToString(val any) (string, error)
- func BytesToBinString(b []byte, delimiter string) string
- func BytesToDecString(b []byte, delimiter string, makeUpZeroes int) string
- func BytesToHexString(b []byte, delimiter string, makeUpZeroes bool) string
- func NumToString(num any) string
- func StringToAny(s string, convSample any) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToBinString ¶
BytesToBinString convert bytes to binary string Used to verify Net Mask delimiter: separator between bytes. Sample: convert []byte{254, 255, 255, 0} to "11111110111111111111111100000000"
func BytesToDecString ¶
BytesToDecString convert bytes to decimal string Used to format IP, Net Mask, MAC delimiter: separator between bytes. Sample: convert []byte{254, 255, 255, 0} to "254255255000"
func BytesToHexString ¶
BytesToHexString convert bytes to hex string Used to format IP, Net Mask, MAC delimiter: separator between bytes. Sample: convert []byte{254, 255, 255, 0} to "feffff00"
func NumToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.