Documentation
¶
Index ¶
- Constants
- Variables
- func Base64ToByte(b string) ([]byte, error)
- func BytesToBase64(b []byte) string
- func BytesToString(b []byte) string
- func CopyString(s string) string
- func GRPCStatus2HTTPStatus(code codes.Code) int
- func Getenv(key, default_ string) string
- func ParseUint64(val string) (uint64, error)
- func SplitString(str string) []string
- func Str2Uint32(val string, default_ uint32) uint32
- func Str2Uint64(val string, default_ uint64) uint64
- func StringToBytes(s string) []byte
- func ToSnakeCase(input string) string
- func Wrap(message string, err error) error
- func Wrapf(err error, message string, a ...interface{}) error
- type Map
Constants ¶
View Source
const (
FloatFormat = 'f'
)
Variables ¶
View Source
var (
TimeFormat = "2006-01-02T15:04:05-07:00"
)
Functions ¶
func Base64ToByte ¶
func BytesToBase64 ¶
func BytesToString ¶
func CopyString ¶
func GRPCStatus2HTTPStatus ¶
func ParseUint64 ¶
func SplitString ¶
func Str2Uint32 ¶
func Str2Uint64 ¶
func StringToBytes ¶
func ToSnakeCase ¶
ToSnakeCase converts the provided string to snake_case. Based on https://gist.github.com/stoewer/fbe273b711e6a06315d19552dd4d33e6
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.