summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--utils.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index 9fa6472..81d2e17 100644
--- a/utils.go
+++ b/utils.go
@@ -23,11 +23,14 @@ package main
import (
"crypto/rand"
"encoding/base64"
+ "errors"
"fmt"
"log"
"net/http"
)
+var errUnexpectedRace = errors.New("unexpected race condition")
+
/*
* Write a string to a http.ResponseWriter, setting the Content-Type and status
* code.