utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(source uint64) string

ConvertToString 将 uint64 类型数据转为 36进制([0-9a-z]) 字符串

func JoinString

func JoinString(source ...string) string

JoinString 字符串拼接

func Mask

func Mask(start, end uint) uint64

Mask 升成指定位数区间内为 1 的 uint64

func NewID

func NewID() uint64

NewID 生成唯一分布式ID

func Open

func Open(path string) (int, error)

Open 用对应文件类型的默认程序打开文件或是连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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