go-uniqid Simple PHP uniqid() implementation in Golang How to use Just include our package go get github.com/mintance/go-uniqid See samples In PHP was: $id = uniqid("test", true); In Go type: id := uniqid.New(uniqid.Params{"test", true})