utils

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckModuleVersion added in v0.0.12

func CheckModuleVersion(mods ...application.Module) error

CheckModuleVersion 检查各个模块的版本是否一致,如果不是就返回错误

func ComputeFileSHA256sum

func ComputeFileSHA256sum(file fs.Path) (util.Hex, error)

ComputeFileSHA256sum ...

func ComputeFileSHA256sumAFS added in v0.0.14

func ComputeFileSHA256sumAFS(file afs.Path) (util.Hex, error)

ComputeFileSHA256sumAFS ...

func ComputeSHA256sum added in v0.0.14

func ComputeSHA256sum(data []byte) util.Hex

ComputeSHA256sum ...

Types

type GinUtils added in v0.0.14

type GinUtils struct{}

GinUtils ...

func (*GinUtils) HasFlag added in v0.0.14

func (inst *GinUtils) HasFlag(c *gin.Context, name string) bool

HasFlag 判断传入的 query 中是否包含指定的标志位

func (*GinUtils) ParseIDs added in v0.0.14

func (inst *GinUtils) ParseIDs(str string, sep string, fn func(n int)) error

ParseIDs 解析类似“1.2.3.4.5.”的参数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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