15 lines
206 B
Go
15 lines
206 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"strings"
|
||
|
|
||
|
"github.com/pborman/uuid"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
uuidWithHyphen := uuid.NewRandom()
|
||
|
uuid := strings.Replace(uuidWithHyphen.String(), "-", "", -1)
|
||
|
fmt.Println(uuid)
|
||
|
}
|