Documentation ¶
Index ¶
- func ConvertToHexPrefix(hexBytes []byte) string
- func ParseHexWithPrefix(hexStr string) ([]byte, error)
- func PathExists(path string) bool
- func ReadGob(filePath string, target interface{}) error
- func ReadJson(filePath string, val interface{}) error
- func WriteGob(data interface{}, filePath string) error
- func WriteJson(filePath string, indent string, val interface{}) error
- type FileLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToHexPrefix ¶
ConvertToHexPrefix converts a byte slice to a hexadecimal string with "0x" prefix.
func ParseHexWithPrefix ¶
ParseHexWithPrefix parses a hexadecimal string with "0x" prefix and returns the corresponding byte slice.
func PathExists ¶
func ReadGob ¶
ReadGob decodes and loads data from a file into the target variable. It takes the file path and a pointer to the target variable as input. It returns an error if any.
Types ¶
Click to show internal directories.
Click to hide internal directories.