utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfGetInt

func ConfGetInt(path string) int

func ConfGetInt64

func ConfGetInt64(path string) int64

func ConfGetString

func ConfGetString(path string) string

func ConfGetbool

func ConfGetbool(path string) bool

func DeJson

func DeJson(jsondata string, data interface{}) error

func EnJson

func EnJson(data interface{}) (string, error)

func FormatGitRepoName

func FormatGitRepoName(slug string) string

func GenerateToken

func GenerateToken() string

func Int64InArray

func Int64InArray(value int64, array []int64) bool

func IntInArray

func IntInArray(value int, array []int) bool

func RHtml

func RHtml(c *gin.Context, html string, data interface{})

func Rfail

func Rfail(c *gin.Context, msg string)

Rfail 错误返回

func Rsucc

func Rsucc(c *gin.Context, data interface{})

Rsucc 成功返回

func StringInArray

func StringInArray(value string, array []string) bool

func StringToInt

func StringToInt(str string) int

func StringToInt64

func StringToInt64(str string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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