pkg

package
v0.0.0-...-26e1b9e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Utils模块

Utils模块提供常见工具类的封装。

  • Routine:创建goroutine的封装
  • validate:字段校验
  • Xcolor:日志色彩
  • xstr:字符串处理
  • xtime:时间转换

Documentation

Index

Constants

View Source
const (
	KC_RAND_KIND_NUM   = 0 // 纯数字
	KC_RAND_KIND_LOWER = 1 // 小写字母
	KC_RAND_KIND_UPPER = 2 // 大写字母
	KC_RAND_KIND_ALL   = 3 // 数字、大小写字母
)

Variables

This section is empty.

Functions

func ISOTimeToLocalTime

func ISOTimeToLocalTime(timeStr string) (localtime string, err error)

func Krand

func Krand(size int, kind int) []byte

随机字符串

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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