1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

initial commit

This commit is contained in:
Harvey Kandola 2016-07-07 18:54:16 -07:00
commit 18933c6767
1841 changed files with 810642 additions and 0 deletions

33
vendor/github.com/nu7hatch/gouuid/example_test.go generated vendored Normal file
View file

@ -0,0 +1,33 @@
package uuid_test
import (
"fmt"
"github.com/nu7hatch/gouuid"
)
func ExampleNewV4() {
u4, err := uuid.NewV4()
if err != nil {
fmt.Println("error:", err)
return
}
fmt.Println(u4)
}
func ExampleNewV5() {
u5, err := uuid.NewV5(uuid.NamespaceURL, []byte("nu7hat.ch"))
if err != nil {
fmt.Println("error:", err)
return
}
fmt.Println(u5)
}
func ExampleParseHex() {
u, err := uuid.ParseHex("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
if err != nil {
fmt.Println("error:", err)
return
}
fmt.Println(u)
}