Better naming of functions and files, delete less than helpful comments

This commit is contained in:
Maximilian committed 2023-08-03 12:09:40 -05:00
1 parent a1438f4fe2
commit 9670b7d717
14 files changed
+82 -103

No files matched your search

-1
View File
@@ -10,7 +10,6 @@ import (
// GenerateCsrfToken generates a csrf token and assigns it to a cookie for double submit cookie csrf protection
func GenerateCsrfToken(w http.ResponseWriter, _ *http.Request) (string, error) {
// Generate random 64 character string (alpha-numeric)
buff := make([]byte, int(math.Ceil(float64(64)/2)))
_, err := rand.Read(buff)
if err != nil {