溜了一圈, go 好像没有提供内置的 uuid 一类的包...
github.com/google/uuidGoogle 提供了一个基于 go 语言实现的 UUID 包
github.com/google/uuiduuid - GoDoc来个简单的示例
// main.gopackage mainimport ("fmt""github.com/google/uuid")func main() {guid := uuid.New()fmt.Println(guid)}转载于:https://my.oschina.net/taadis/blog/3082497