utils

package
v0.0.0-...-2d47b1e Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeData

func DeserializeData[T interface{}](source any, target *T) T

func GetCodeLine

func GetCodeLine(skip int) string

调用 GetCodeLine 获取当前代码所在的行数

func RecoverAndLog

func RecoverAndLog()

recover and log, when create goroutine panic, it will be recovered and log 推荐在windows下使用,linux可以直接查看控制台输出查找问题

func WrapErrorLocation

func WrapErrorLocation(err error, msg ...string) error

WrapErrorLocation 包装错误信息,将发生错误的行数信息添加到错误信息中

Types

This section is empty.

Jump to

Keyboard shortcuts

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