util

package
v0.0.0-...-3c045af Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtoI

func AtoI(number string) int

func Bool2Str

func Bool2Str(is bool) string

func IsAccessForbidden

func IsAccessForbidden(data []byte) bool

func ItoA

func ItoA(number int) string

func Min

func Min(a int, b int) int

func PanicIf

func PanicIf(err error)

func Str2Bool

func Str2Bool(is string) bool

func Truncate100

func Truncate100(data string) string

func TruncateN

func TruncateN(data string, N int) string

func WhereAmI

func WhereAmI() string

Types

type NormalResp

type NormalResp struct {
	Code    float64
	Message string
	Data    string
}

Jump to

Keyboard shortcuts

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