📝 README and inline docs

This commit is contained in:
Brian Wiborg 2024-05-14 10:26:48 +02:00
parent d533a879ef
commit c61300c6b8
No known key found for this signature in database
GPG key ID: BE53FA9286B719D6
14 changed files with 139 additions and 24 deletions

View file

@ -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++ {