Connor Peet
d3bf1ae440
Fix panic during UnmarshalJSON
2017-06-16 09:02:47 -07:00
Bruce Marriner
02cc386c18
Add Status
2017-02-21 10:07:16 -06:00
Bruce Marriner
734cbe306e
Added Base58 encoder/decoder
2017-02-21 09:58:29 -06:00
Bruce Marriner
34b33bf22a
Merge branch 'master' of https://github.com/bwmarrin/snowflake
2016-12-04 08:16:30 -06:00
Bruce Marriner
d80550bec3
Fixed readme example.
2016-12-04 08:16:12 -06:00
Bruce
3107b1dd8c
Merge pull request #4 from WatchBeam/intbytes
...
Add a method to encode the snowflake as a byte slice
2016-08-12 13:28:05 -05:00
Connor Peet
95d961a628
Add a method to encode the snowflake as a byte slice
2016-07-26 11:35:39 -07:00
Bruce
cd8e42350a
Merge pull request #2 from zeroZshadow/master
...
Fix UnmarshalJSON benchmark & Optimize MarshalJSON a little more
2016-06-10 21:24:27 -05:00
zeroZshadow
8abf09e1ce
Allocate the maximum in 1 go for marshaling
2016-06-11 04:20:04 +02:00
zeroZshadow
bb0fb2c0f5
Fix UnmarshalJSON benchmark
...
Optimize MarshalJSON a little more
2016-06-11 03:48:54 +02:00
Bruce Marriner
c676f9e9ea
Correct node error. It's 0-1023!
2016-06-10 18:54:48 -05:00
Bruce Marriner
00c61c48d0
Use nodeShift instead of 12.
2016-06-10 18:51:24 -05:00
Bruce Marriner
94a47d42a7
Don't defer.
...
This dropped (on my system) the Generate benchmark from about
285-330ns/op down to 244ns/op. Yay!
2016-06-10 18:20:30 -05:00
Bruce
82eab22d0d
Merge pull request #1 from zeroZshadow/master
...
Added tests, optimized MarshalJSON, removed unused error from Generate
2016-06-10 17:59:15 -05:00
zeroZshadow
7c362b8bf3
oops, left some experiment stuff in
2016-06-10 20:35:59 +02:00
zeroZshadow
d8933e1ea5
Added tests for MarshalJSON and UnmarshalJSON
...
Reduced allocation of MarshalJSON from 65 to 40 B/op
2016-06-10 20:33:36 +02:00
Bruce Marriner
348dc1e55f
Lint.
2016-06-04 15:52:39 -05:00
Bruce Marriner
db0acce1d0
Linting, Optimizations, Cleanup, More Benchmarks.
2016-06-04 15:50:03 -05:00
Bruce Marriner
0fdfe21511
Removed http.Handler interface
...
Including this added 60KB to the compiled library which I do not think
is worth it just to include a helper function consisting of about 4
lines of code.
2016-06-01 16:58:13 -05:00
Bruce Marriner
bdcd2f75e6
Added http.Handler interface
2016-06-01 16:49:10 -05:00
Bruce Marriner
97d16a5921
Fixed package name in test file
2016-06-01 16:15:57 -05:00
Bruce Marriner
bf4c51fc2b
Rename to snowflake
2016-06-01 16:12:53 -05:00
Bruce Marriner
7e351e0315
Shorten package comment
2016-06-01 16:07:43 -05:00
Bruce Marriner
62c0e8458e
readme's are hard work.
2016-06-01 16:03:53 -05:00
Bruce Marriner
f2e8d92661
Fix badge
2016-06-01 15:58:14 -05:00
Bruce Marriner
229dec8980
Mention Discord Gophers
2016-06-01 15:56:22 -05:00
Bruce Marriner
2934ce581c
Update readme.
2016-06-01 15:52:49 -05:00
Bruce Marriner
9d4cff4177
Remove fmt.Println
2016-06-01 15:51:35 -05:00
Bruce Marriner
8f788319b3
Update readme
2016-06-01 15:51:05 -05:00
Bruce Marriner
e2267e8327
Mention JSON Marshal/Unmarshal
2016-06-01 15:34:17 -05:00
Bruce Marriner
315fd24dfb
Add Performance section
2016-06-01 15:33:04 -05:00
Bruce Marriner
8b60f34eef
Clean up example usage
2016-06-01 15:17:09 -05:00
Bruce Marriner
b61ac3cab6
Add working example
2016-06-01 15:15:24 -05:00
Bruce Marriner
3f3735b65d
Fix link, maybe.
2016-06-01 15:06:16 -05:00
Bruce Marriner
6db1171237
Readme cleanup
2016-06-01 15:02:33 -05:00
Bruce Marriner
113b5eb2cf
Adding TravisCI configuration file.
2016-06-01 15:01:25 -05:00
Bruce Marriner
939a98fa97
Fix incorrect method name in benchmark.
2016-06-01 15:00:34 -05:00
Bruce Marriner
cfa7691d14
The Real Initial Commit.
2016-06-01 14:59:26 -05:00
Bruce Marriner
9befef8908
Updated readme.
2016-05-25 16:28:44 -05:00
Bruce Marriner
433509f1af
More tests
2016-05-25 16:25:52 -05:00
Bruce Marriner
88e3540ee4
added channel parallel benchmark
2016-05-25 15:42:14 -05:00
Bruce Marriner
4677b9c7e1
Added a channel version..
2016-05-25 15:40:25 -05:00
Bruce Marriner
63ab6161db
The big question.
2016-05-25 15:07:49 -05:00
Bruce Marriner
362c607f74
removed some comments
2016-05-25 14:57:52 -05:00
Bruce Marriner
f1a31db501
initial commit
2016-05-25 14:57:33 -05:00
Bruce
b47a20bc89
Create README.md
2016-05-25 14:56:18 -05:00
Bruce
c4eced1545
Initial commit
2016-05-25 14:55:49 -05:00