summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/GeertJohan/go.rice/rice/identifier.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/GeertJohan/go.rice/rice/identifier.go')
-rw-r--r--vendor/github.com/GeertJohan/go.rice/rice/identifier.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/GeertJohan/go.rice/rice/identifier.go b/vendor/github.com/GeertJohan/go.rice/rice/identifier.go
new file mode 100644
index 00000000..445ee7da
--- /dev/null
+++ b/vendor/github.com/GeertJohan/go.rice/rice/identifier.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "strconv"
+
+ "github.com/GeertJohan/go.incremental"
+)
+
+var identifierCount incremental.Uint64
+
+func nextIdentifier() string {
+ num := identifierCount.Next()
+ return strconv.FormatUint(num, 36) // 0123456789abcdefghijklmnopqrstuvwxyz
+}