Commit Graph

3 Commits

Author SHA1 Message Date
Victor Agababov 7a5ce38287 Simplify and comment AppenRandomString (#282)
* Simplify and comment AppenRandomString

Port and rewrite the comment from the original.
Remove the sync.Once(). Initializing during package initialization is just as good.
Mutex doesn't have to be a pointer

* remove fancy rnd, remove mutex, add example, which would also check compilation

* actually commit the example

* add licence
2019-02-18 12:26:45 -08:00
mattmoor-sockpuppet d9eb9772e8 golang format tools (#276)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
2019-02-13 08:29:42 -08:00
Leonardo Rossetti c089ddfc5d test/helpers module to store AppendRandomString helper fn (#256)
* test/helpers module to store AppendRandomString helper fn

* defer unlock
2019-02-12 12:10:43 -08:00