Skip to content

Instantly share code, notes, and snippets.

@mhrivnak
Created February 8, 2018 21:25
Show Gist options
  • Save mhrivnak/cdf4bfc8f8b2d553923a1b9c9f97c066 to your computer and use it in GitHub Desktop.
Save mhrivnak/cdf4bfc8f8b2d553923a1b9c9f97c066 to your computer and use it in GitHub Desktop.

If you run this:

package main

import (
    "fmt"
    "github.com/pborman/uuid"
)

func main() {
    fmt.Println(uuid.NewUUID())
    fmt.Println(uuid.NewUUID())
    fmt.Println(uuid.NewUUID())
    fmt.Println(uuid.NewUUID())
}

The output is this:

$ go run u.go 
4c1bc17e-0d16-11e8-9789-68f72877eaca
4c1bc25d-0d16-11e8-9789-68f72877eaca
4c1bc28b-0d16-11e8-9789-68f72877eaca
4c1bc2b0-0d16-11e8-9789-68f72877eaca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment