From f8710743d45cebf4698d04697f5b3a5f6e33d775 Mon Sep 17 00:00:00 2001 From: juliendsv Date: Sun, 16 Nov 2014 23:28:12 -0500 Subject: [PATCH] fix demo --- example/demo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/demo.go b/example/demo.go index dcc80af..5ff8126 100644 --- a/example/demo.go +++ b/example/demo.go @@ -5,16 +5,16 @@ github.com/twitter/snowflake in golang package main import ( - "github.com/sdming/gosnow" "fmt" + "github.com/sdming/gosnow" ) func main() { - v := gosnow.Default() + v, _ := gosnow.Default() //v := gosnow.NewSnowFlake(100) for i := 0; i < 10; i++ { - id := v.Next() + id, _ := v.Next() fmt.Println(id) } }