builtin

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: 0BSD Imports: 14 Imported by: 0

README

builtin

ark builtin

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Found  = ark.Result(1, "_found", "不存在", false)
	Error  = ark.Result(2, "_error", "系统错误", false)
	Failed = ark.Result(3, "_error", "参数错误", false)
	Denied = ark.Result(4, "_denied", "拒绝访问", false)

	MappingEmpty = ark.Result(11, "_mapping_empty", "%s不可为空", false)
	MappingError = ark.Result(12, "_mapping_error", "%s不是有效的值", false)

	AuthEmpty = ark.Result(21, "_auth_empty", "%s未登录", false)
	AuthError = ark.Result(22, "_auth_error", "%s无效登录", false)

	ItemEmpty = ark.Result(31, "_item_empty", "%s记录不存在", false)
	ItemError = ark.Result(32, "_item_error", "%s记录不存在", false)
)

Functions

func Md5

func Md5(str string) string

md5加密

func Md5File

func Md5File(file string) string

md5加密文件

func Password added in v0.1.1

func Password(str string) string

密码加密格式

func Sha1

func Sha1(str string) string

sha1加密

func Sha1File

func Sha1File(file string) string

sha1加密文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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