Skip to content

Commit

Permalink
docs(README): updated usage examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HotPotatoC committed Jan 3, 2022
1 parent b502df6 commit d1a5e86
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ sf := snowflake.New(machineID)
id := sf.NextID()
fmt.Println(id)
// 1292053924173320192

// or

id = snowflake.New(machineID).NextID()
fmt.Println(id)
// 1292053924173320192
```

2. Parsing a snowflake id
Expand All @@ -49,12 +43,6 @@ sf := snowflake.New2(machineID, processID)
id := sf.NextID()
fmt.Println(id)
// 1292065108376162304

// or

id = snowflake.New2(machineID, processID).NextID()
fmt.Println(id)
// 1292065108376162304
```

4. Parsing a snowflake id with 2 discriminator fields
Expand Down

0 comments on commit d1a5e86

Please sign in to comment.