misc

package
v0.0.0-...-188702c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigXRay

func ConfigXRay(xda string) error

func ErrorCheck

func ErrorCheck(err interface{}, msg string)

ErrorCheck prints the err and msg to the logger if err != nil.

func ErrorCheckExit

func ErrorCheckExit(err interface{}, msg string)

ErrorCheckExit calls ErrorCheck with the (err, msg) pair and exit the program with a non-zero return code if err != nil.

func Logger

func Logger() *zap.SugaredLogger

func XRayMw

func XRayMw(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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