goframe_utils

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

goframe-util

基于goframe的工具库

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CriticalWithDefault

func CriticalWithDefault(v ...any)

func CriticalfWithDefault

func CriticalfWithDefault(format string, v ...any)

func DebugWithDefault

func DebugWithDefault(v ...any)

func DebugfWithDefault

func DebugfWithDefault(format string, v ...any)

func ErrorWithDefault

func ErrorWithDefault(v ...any)

func ErrorfWithDefault

func ErrorfWithDefault(format string, v ...any)

func FatalWithDefault

func FatalWithDefault(v ...any)

func FatalfWithDefault

func FatalfWithDefault(format string, v ...any)

func GetBoolWithDefault

func GetBoolWithDefault(pattern string, defaultValue ...bool) (bool, error)

func GetDurationWithDefault

func GetDurationWithDefault(pattern string, defaultValue ...time.Duration) (time.Duration, error)

func GetFloat32WithDefault

func GetFloat32WithDefault(pattern string, defaultValue ...float32) (float32, error)

func GetFloat64WithDefault

func GetFloat64WithDefault(pattern string, defaultValue ...float64) (float64, error)

func GetInt16WithDefault

func GetInt16WithDefault(pattern string, defaultValue ...int16) (int16, error)

func GetInt32WithDefault

func GetInt32WithDefault(pattern string, defaultValue ...int32) (int32, error)

func GetInt64WithDefault

func GetInt64WithDefault(pattern string, defaultValue ...int64) (int64, error)

func GetInt8WithDefault

func GetInt8WithDefault(pattern string, defaultValue ...int8) (int8, error)

func GetIntWithDefault

func GetIntWithDefault(pattern string, defaultValue ...int) (int, error)

func GetInterfaceWithDefault

func GetInterfaceWithDefault(pattern string, defaultValue ...interface{}) (interface{}, error)

func GetMapStrAnyWithDefault

func GetMapStrAnyWithDefault(pattern string, defaultValue ...map[string]interface{}) (map[string]interface{}, error)

func GetMapStrStrWithDefault

func GetMapStrStrWithDefault(pattern string, defaultValue ...map[string]string) (map[string]string, error)

func GetMapStrVarWithDefault

func GetMapStrVarWithDefault(pattern string, defaultValue ...map[string]*gvar.Var) (map[string]*gvar.Var, error)

func GetMapWithDefault

func GetMapWithDefault(pattern string, defaultValue ...map[string]interface{}) (map[string]interface{}, error)

func GetMetaFromCtx

func GetMetaFromCtx(ctx context.Context) map[string]string

func GetMetaTag

func GetMetaTag(r *ghttp.Request) map[string]string

func GetTimeWithDefault

func GetTimeWithDefault(pattern string, format string, defaultValue ...map[any]any) *gtime.Time

func GetUint16WithDefault

func GetUint16WithDefault(pattern string, defaultValue ...uint16) (uint16, error)

func GetUint32WithDefault

func GetUint32WithDefault(pattern string, defaultValue ...uint32) (uint32, error)

func GetUint64WithDefault

func GetUint64WithDefault(pattern string, defaultValue ...uint64) (uint64, error)

func GetUint8WithDefault

func GetUint8WithDefault(pattern string, defaultValue ...uint8) (uint8, error)

func GetValWithDefault

func GetValWithDefault(pattern string, defaultValue ...interface{}) (interface{}, error)

func InfoWithDefault

func InfoWithDefault(v ...any)

func InfofWithDefault

func InfofWithDefault(format string, v ...any)

func NoticeWithDefault

func NoticeWithDefault(v ...any)

func NoticefWithDefault

func NoticefWithDefault(format string, v ...any)

func PanicWithDefault

func PanicWithDefault(v ...any)

func PanicfWithDefault

func PanicfWithDefault(format string, v ...any)

func PrintWithDefault

func PrintWithDefault(v ...any)

func PrintfWithDefault

func PrintfWithDefault(format string, v ...any)

func ScanWithDefault

func ScanWithDefault(pattern string, pointer interface{}, m map[string]string, defaultValue ...map[any]any) error

func SetDbDebug

func SetDbDebug(env []string, name ...string) error

func SetDbDebugWithDefault

func SetDbDebugWithDefault(name ...string) error

func StructWithDefault

func StructWithDefault(pattern string, pointer interface{}, m map[string]string, defaultValue ...map[any]any) error

func WarningWithDefault

func WarningWithDefault(v ...any)

func Warningf

func Warningf(format string, v ...any)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL