utils

package
v0.0.0-...-cb28017 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackHTML = `
<script src="/torima/static/wrapper/back.js"></script>
`
View Source
var FailedToSplitErrorTag = "failed to split error tag"
View Source
var Scripts = `` /* 265-byte string literal not displayed */
View Source
var UnauthorizedErrorTag = "failed to authorize users"

Functions

func AbordGin

func AbordGin(err error, c *gin.Context)

func FindStatusCodeByErr

func FindStatusCodeByErr(err *error) int

func MakeError

func MakeError(e error, tag string) error

func RandomString

func RandomString(n int) string

func ReadEnv

func ReadEnv(name, def string) string

func ReadEnvOrPanic

func ReadEnvOrPanic(name string) string

func SplitErrorTag

func SplitErrorTag(err error) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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