Documentation ¶
Index ¶
- func ByteToObj(buf []byte, out interface{}) (err error)
- func Decode(reader io.Reader, obj interface{}) error
- func MapToObj(maps map[string]interface{}, out interface{}) error
- func Marshal(in interface{}) (str string, err error)
- func MustObjToByte(in interface{}) []byte
- func ObjToByte(in interface{}) (buf []byte, err error)
- func ObjToJsonStr(obj interface{}) (str string)
- func ObjToMap(in interface{}) map[string]interface{}
- func PrintPanicInfo(msg string)
- func ProcessErr(u interface{}, err error) string
- func Struct(s interface{}) error
- func TraceElapsed(start time.Time)
- func TraceElapsedByName(start time.Time, traceName string)
- func TraceHttpReq(ctx *fasthttp.RequestCtx, start time.Time)
- func TraceHttpReqByCtx(ctx *fasthttp.RequestCtx) func()
- func Unmarshal(in string, out interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjToJsonStr ¶
func ObjToJsonStr(obj interface{}) (str string)
func PrintPanicInfo ¶
func PrintPanicInfo(msg string)
func ProcessErr ¶
ProcessErr processes validation errors and returns an error message. It handles custom rules and error messages for the go-validator parameter validator.
func TraceElapsed ¶
func TraceElapsedByName ¶
func TraceHttpReq ¶
func TraceHttpReq(ctx *fasthttp.RequestCtx, start time.Time)
func TraceHttpReqByCtx ¶ added in v0.0.3
func TraceHttpReqByCtx(ctx *fasthttp.RequestCtx) func()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.