hiboot: hidevops.io/hiboot/pkg/utils/idgen Index | Files

package idgen

import "hidevops.io/hiboot/pkg/utils/idgen"

Package idgen provides unique id generation utilities that use twitter's snowflake algorithm


Package Files


func Next Uses

func Next() (id uint64, err error)

Next generates next id as an uint64

func NextString Uses

func NextString() (id string, err error)

NextString generates next id as a string

Package idgen imports 6 packages (graph) and is imported by 2 packages. Updated 2019-07-20. Refresh now. Tools for package owners.