README ¶ fuid fuid is simple and fast uuid string library forked from rs/xid Requirement Go 1.11 Installation go get github.com/kpango/fuid Example fuid.String() Benchmarks fuid vs rs/xid vs satori/go.uuid vs google/uuid go test -count=5 -run=NONE -bench . -benchmem goos: darwin goarch: amd64 pkg: github.com/kpango/fuid BenchmarkFUID-8 50000000 34.5 ns/op 32 B/op 1 allocs/op BenchmarkFUID-8 50000000 35.6 ns/op 32 B/op 1 allocs/op BenchmarkFUID-8 50000000 35.0 ns/op 32 B/op 1 allocs/op BenchmarkFUID-8 50000000 37.2 ns/op 32 B/op 1 allocs/op BenchmarkFUID-8 50000000 36.8 ns/op 32 B/op 1 allocs/op BenchmarkXID-8 30000000 50.4 ns/op 32 B/op 1 allocs/op BenchmarkXID-8 30000000 51.9 ns/op 32 B/op 1 allocs/op BenchmarkXID-8 30000000 53.4 ns/op 32 B/op 1 allocs/op BenchmarkXID-8 30000000 49.0 ns/op 32 B/op 1 allocs/op BenchmarkXID-8 30000000 49.4 ns/op 32 B/op 1 allocs/op BenchmarkSatoriUUID-8 3000000 609 ns/op 20 B/op 1 allocs/op BenchmarkSatoriUUID-8 3000000 594 ns/op 19 B/op 1 allocs/op BenchmarkSatoriUUID-8 2000000 574 ns/op 20 B/op 1 allocs/op BenchmarkSatoriUUID-8 3000000 593 ns/op 20 B/op 1 allocs/op BenchmarkSatoriUUID-8 2000000 613 ns/op 20 B/op 1 allocs/op BenchmarkGoogleUUID-8 3000000 561 ns/op 20 B/op 1 allocs/op BenchmarkGoogleUUID-8 3000000 588 ns/op 19 B/op 1 allocs/op BenchmarkGoogleUUID-8 3000000 590 ns/op 19 B/op 1 allocs/op BenchmarkGoogleUUID-8 2000000 590 ns/op 19 B/op 1 allocs/op BenchmarkGoogleUUID-8 3000000 575 ns/op 19 B/op 1 allocs/op PASS ok github.com/kpango/fuid 39.718s Contribution Fork it ( https://github.com/kpango/fuid/fork ) Create your feature branch (git checkout -b my-new-feature) Commit your changes (git commit -am 'Add some feature') Push to the branch (git push origin my-new-feature) Create new Pull Request Author kpango LICENSE fuid released under MIT license, refer LICENSE file. Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func String() string type FUID func New() *FUID func (f *FUID) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func String ¶ func String() string Types ¶ type FUID ¶ type FUID struct { // contains filtered or unexported fields } func New ¶ func New() *FUID func (*FUID) String ¶ func (f *FUID) String() string Source Files ¶ View all Source files fuid.go hostid_linux.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.