📝 README and inline docs
This commit is contained in:
parent
d533a879ef
commit
c61300c6b8
14 changed files with 139 additions and 24 deletions
|
|
@ -6,6 +6,8 @@ import (
|
|||
|
||||
const charSet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
|
||||
// GenerateRandomString takes a length and returns a random string of that length.
|
||||
// This function is used for generating random IDs for the votings.
|
||||
func GenerateRandomString(length int) string {
|
||||
result := make([]byte, length)
|
||||
for i := 0; i < length; i++ {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue