utils

package
v0.0.0-...-cfa74d8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogBanner

func LogBanner()

func MustOrLogPanic

func MustOrLogPanic(f func() error, msg string, field ...zap.Field)

MustOrLogPanic @Date 2023-01-12 19:15:33 @Param f func() error @Param msg string @Param field ...zap.Field @Description: 必须完成某一个操作,否则就panic并记录日志

func MustOrPanic

func MustOrPanic(f func() error)

MustOrPanic @Date 2023-01-12 18:23:11 @Param f func() error @Description: 必须完成某个操作,否则就panic

func WrapSimpleError

func WrapSimpleError(msg string, err error) error

WrapSimpleError @Date 2023-02-26 21:00:34 @Param msg string @Param err error @Return error @Description: 简单的包装错误

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