summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.go b/util.go
index 7385dfd..dde34c0 100644
--- a/util.go
+++ b/util.go
@@ -4,6 +4,7 @@ import (
4 "crypto/sha256" 4 "crypto/sha256"
5 "encoding/hex" 5 "encoding/hex"
6 "net/url" 6 "net/url"
7 "strconv"
7 "strings" 8 "strings"
8) 9)
9 10
@@ -59,3 +60,7 @@ func Sha256Hex(v string) string {
59 s256.Write([]byte(v)) 60 s256.Write([]byte(v))
60 return hex.EncodeToString(s256.Sum(nil)) 61 return hex.EncodeToString(s256.Sum(nil))
61} 62}
63
64func StringListFromInt(i int64) []string {
65 return []string{strconv.FormatInt(i, 10)}
66}