Documentation
¶
Index ¶
- func Env(key, defaultVal string) string
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func ReadFile(path string) ([]byte, error)
- func StringPtr(s string) *string
- func StringToBool(s string) (bool, error)
- func StringToInt64(s string) (int64, error)
- func ToValidUTF8(s, replacement []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToBool ¶
func StringToInt64 ¶
func ToValidUTF8 ¶
ToValidUTF8 treats s as UTF-8-encoded bytes and returns a copy with each run of bytes representing invalid UTF-8 replaced with the bytes in replacement, which may be empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.