Documentation ¶
Index ¶
- func DefaultBool(i interface{}, fallback bool) bool
- func DefaultFloat(i interface{}, fallback float64) float64
- func DefaultInt(i interface{}, fallback int64) int64
- func DefaultString(i interface{}, fallback string) string
- func DefaultTime(i interface{}, fallback time.Time) time.Time
- func GetEnv(key, fallback string) string
- func GetEnvBool(key string, fallback bool) bool
- func GetEnvFloat64(key string, fallback float64) float64
- func GetEnvInt32(key string, fallback int32) int32
- func LogDebug(msg string)
- func LogError(msg string, err error)
- func NewTimeUTC() time.Time
- func NilBool(i interface{}) *bool
- func NilFloat64(i interface{}) *float64
- func NilInt(i interface{}) *int
- func NilInt16(i interface{}) *int16
- func NilInt32(i interface{}) *int32
- func NilInt64(i interface{}) *int64
- func NilString(i interface{}) *string
- func NilTime(t time.Time) *time.Time
- func OnErrorPanic(err error)
- func ParseBool(value string, fallback bool) bool
- func ParseFloat64(str string, fallback float64) float64
- func ParseInt32(str string, fallback int32) int32
- func ParseInt64(str string, fallback int64) int64
- func ParseTime(str string, fallback *time.Time) *time.Time
- func RandomString(length int) string
- func ResolveFromFile(base64Value, filePath string) ([]byte, error)
- func SqlNullBool(i interface{}) sql.NullBool
- func SqlNullFloat64(i interface{}) sql.NullFloat64
- func SqlNullInt32(i interface{}) sql.NullInt32
- func SqlNullInt64(i interface{}) sql.NullInt64
- func SqlNullString(i interface{}) sql.NullString
- func SqlNullTime(i interface{}) sql.NullTime
- func SqlNullZeroInt64(i interface{}) sql.NullInt64
- func StringsContainString(strings []*string, str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBool ¶
func DefaultFloat ¶
func DefaultInt ¶
func DefaultString ¶
func GetEnvBool ¶
func GetEnvFloat64 ¶
func GetEnvInt32 ¶
func NewTimeUTC ¶
func NilFloat64 ¶
func NilFloat64(i interface{}) *float64
func OnErrorPanic ¶
func OnErrorPanic(err error)
func ParseFloat64 ¶
func ParseInt32 ¶
func ParseInt64 ¶
func RandomString ¶
func ResolveFromFile ¶
func SqlNullBool ¶
func SqlNullFloat64 ¶
func SqlNullFloat64(i interface{}) sql.NullFloat64
func SqlNullInt32 ¶
func SqlNullInt64 ¶
func SqlNullString ¶
func SqlNullString(i interface{}) sql.NullString
func SqlNullTime ¶
func SqlNullZeroInt64 ¶
func StringsContainString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.