Skip to content
pharosnetPublic

About

AUID package for golang (GO)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • AUID is a id generator base on UUID for Go, and it itself is completely stable.
  • AUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-xxxxxxxxxxx
  • Support pool.
  • Support UUIDs.
  • Thread safety.

Example

The simplest way:

package main

import (
	"github.com/pharosnet/auid"
	"fmt"
)

func main() {
    fmt.Println(auid.NewAuid())
}

Pool:

package main

import (
	"github.com/pharosnet/auid"
	"fmt"
)

func main() {
    fmt.Println(auid.NewAuidWithPool())
}

About

AUID package for golang (GO)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages