idgen

package module
v0.0.0-...-83657d0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: Apache-2.0 Imports: 3 Imported by: 8

README

idgen

id generation for golang

korean discription

http://kasw.blogspot.kr/2015/01/go-serial-id.html

Documentation

Overview

serial id gen package

serial id gen package

serial id gen package

Index

Constants

This section is empty.

Variables

View Source
var GenCh = NewGen(0)
View Source
var ID32GenCh = NewGen32(0)

Functions

func NewGen

func NewGen(beginnum IDInt) func() <-chan IDInt

func NewGen32

func NewGen32(beginnum ID32) func() <-chan ID32

Types

type ID32

type ID32 int32

func (ID32) String

func (id ID32) String() string

type IDInt

type IDInt int64

func (IDInt) String

func (id IDInt) String() string

type IDList

type IDList []IDInt

func (IDList) FindIndex

func (s IDList) FindIndex(id IDInt) int

func (IDList) Len

func (s IDList) Len() int

func (IDList) Less

func (s IDList) Less(i, j int) bool

func (IDList) Swap

func (s IDList) Swap(i, j int)

type UUID

type UUID [16]uint8

func NewUUID

func NewUUID() *UUID

func (UUID) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

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