tools

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* * Create by goland * Author: 墨城 * Create Time: 2021-08-28 14:50 * Maintainers: 公用函数

* * Create by goland * Author: 墨城 * Create Time: 2021-09-01 11:51 * Maintainers: ID生成器

Index

Constants

View Source
const (
	MAXUINT32              = 4294967295
	DEFAULT_UUID_CNT_CACHE = 512
)

Variables

This section is empty.

Functions

func RemoveLBR

func RemoveLBR(text string) string

去命令行多余的字符

Types

type UUIDGenerator

type UUIDGenerator struct {
	Prefix string
	// contains filtered or unexported fields
}
var UUIDGen *UUIDGenerator

func (*UUIDGenerator) Get

func (this *UUIDGenerator) Get() string

获取带前缀的字符串形式的UUID

func (*UUIDGenerator) GetUint32

func (this *UUIDGenerator) GetUint32() uint32

获取uint32形式的UUID

Jump to

Keyboard shortcuts

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