|
|
|
|
|
by nikolayasdf123
811 days ago
|
|
1. some tests, over the wire preferably, would be nice 2. redis.go does not seem to be nessary it just changes signature of redis client constructor without much difference, might as well inline its contents 3. using fmt too much, if you don't need run time variables encoding, can do something more simpler. like writing to w.Write([]byte) directly. fmt uses reflect and runtime type detection, better avoid if not needed. 4. code comments do not follow godoc conventions. they should start from symbol name. did you run go fmt and some basic linters? 5. mutex is not used. and it should be pointer. |
|