From e2267e83278be32873cc848411ba244cd3aea890 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Wed, 1 Jun 2016 15:34:17 -0500 Subject: [PATCH] Mention JSON Marshal/Unmarshal --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cdac03e..fec11a9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ go get github.com/bwmarrin/flake Import the package into your project then construct a new flake Node using a unique node number from 0 to 1023. With the node object call the Generate() -method to generate and return a unique snowflake ID. +method to generate and return a unique snowflake ID. Also MarshalJSON and +UnmarshalJSON methods are provided to easily use these ID's with a JSON API. **Example Program:**