Skip to content

Instantly share code, notes, and snippets.

@jmarhee
Created April 9, 2023 05:25
Show Gist options
  • Save jmarhee/7e2cdf8c0d8cf8f0f503f34faed7ca03 to your computer and use it in GitHub Desktop.
Save jmarhee/7e2cdf8c0d8cf8f0f503f34faed7ca03 to your computer and use it in GitHub Desktop.
Generate UUIDs in Go.
module uuid-generator
go 1.16
require github.com/google/uuid v1.2.0
package main
import (
"fmt"
"github.com/google/uuid"
)
func main() {
newUUID := uuid.New()
fmt.Println(newUUID)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment