I was trying to figure out a way to get the system unique UUID.
like generated by
sudo dmidecode -s system-uuid
I tried using github.com/satori/go.uuid
but each time I execute it,
it gives me a new UUID.
The code that I am using is as below.
func main() {
u2, err := uuid.NewV4()
if err != nil {
fmt.Printf("Something went wrong: %s", err)
return
}
fmt.Printf("UUIDv4: %s
", u2)
}