Generate unique ID with given length
go get -u github.com/ilyabrin/uniq
package main
import "github.com/ilyabrin/uniq"
const length = 10
const maxUpCase = 6
func main() {
println("Generated ID:", uniq.New(length, maxUpCase))
}
Example: https://go.dev/play/p/i6vKfk-evij
MIT