Documentation ¶
Index ¶
- func CalcSum(bs []byte) (_md5, _sha1, _sha256 string)
- func CloseIO(ctx context.Context, io io.Closer)
- func DoThreeTimesIfErr(fn func() error) error
- func Fail(c *gin.Context, status int, msg string)
- func FailByErr(c *gin.Context, err error)
- func GetLocalNetIP() string
- func GetLocalNoLoopIP() string
- func IsAllHanCharacters(str string) bool
- func IsAllLetterCharacters(str string) bool
- func Success(c *gin.Context, v any)
- func SuccessMsg(c *gin.Context, v string)
- func VendFile(c *gin.Context, fileSize int64, fileName string, fileObj io.Reader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoThreeTimesIfErr ¶
DoThreeTimesIfErr 最多执行三次 fn,若 err 非 nil。
func IsAllLetterCharacters ¶
IsAllLetterCharacters 字符串是否是字母
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.