summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/snowflake/snowflake.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/snowflake/snowflake.go b/pkg/snowflake/snowflake.go
index 6a53760..485026b 100644
--- a/pkg/snowflake/snowflake.go
+++ b/pkg/snowflake/snowflake.go
@@ -24,6 +24,8 @@ const (
type ID int64
+const InvalidID = ID(0)
+
func (id ID) String() string {
return strconv.FormatInt(int64(id), 10)
}