const ( defaultTokenLenint=16) funcGenerateToken() string { rand.Seed(time.Now().UnixNano()) runes := []rune("abcdefghijklmnopqrstuvwxyz0123456789") b :=make([]rune, defaultTokenLen) fori :=rangeb { b[i] =runes[rand.Intn(len(runes))] } returnstring(b) }