go packages which are fine
Go to file
2019-01-24 22:05:17 -05:00
cmd/totp-proxy totp-proxy: update to use new mctx/mcfg/mrun framework 2019-01-24 22:05:17 -05:00
jstream mtest->mrand: move rand functionality from mtest into its own package 2018-07-03 00:20:00 +00:00
m m: implement Run function, which glues together mcfg.Populate, mrun.Start, and mrun.Stop 2019-01-24 22:04:58 -05:00
mcfg mcfg: use merr for returned errors, and make help output prioritize required params towards the top 2019-01-24 22:02:04 -05:00
mcrypto mlog: remove ErrKV/ErrWithKV, merr.KV/merr.WithValue are used instead 2019-01-15 00:00:24 -05:00
mctx mctx: make GetSetMutableValue lock on the key itself, not the entire map, to allow more throughput when being used on multiple keys at once 2019-01-10 17:22:58 -05:00
mdb mbigtable: implement basic cfg and basic tests 2018-07-21 19:56:50 +00:00
merr merr: move With/GetValue to kv.go, make nil error behavior be explicitly defined and tested 2019-01-24 16:45:38 -05:00
mhttp mhttp: implement MListenAndServe, using new mctx/mrun/mcfg framework 2019-01-24 19:23:04 -05:00
mlog mlog: remove ErrKV/ErrWithKV, merr.KV/merr.WithValue are used instead 2019-01-15 00:00:24 -05:00
mnet mnet: add MListener.CloseOnStop, to allow for http.Server.Shutdown (and other entities) closing the listener instead 2019-01-24 19:19:57 -05:00
mrand mrand: fix bug in Hex with it not outputting correct number of characters for odd number inputs 2018-08-13 19:40:15 -04:00
mrpc mtest->mrand: move rand functionality from mtest into its own package 2018-07-03 00:20:00 +00:00
mrun mrun: make Thread's callback not take in a context, it doesn't really help anything 2019-01-24 19:18:44 -05:00
mtest massert: add Err and Errf functions 2018-10-28 15:09:14 -04:00
mtime mtime: fix older package doc not having been deleted 2018-05-27 07:57:23 +00:00
env.test mbigtable: implement basic cfg and basic tests 2018-07-21 19:56:50 +00:00
LICENSE Initial commit 2018-01-11 15:47:01 +00:00
README.md mlog: remove ErrKV/ErrWithKV, merr.KV/merr.WithValue are used instead 2019-01-15 00:00:24 -05:00

mediocre-go-lib

This is a collection of packages which I use across many of my personal projects. All packages intended to be used start with an m, packages not starting with m are for internal use within this set of packages.

Usage notes

  • In general, all checking of equality of errors, e.g. err == io.EOF, done on errors returned from the packages in this project should be done using merr.Equal, e.g. merr.Equal(err, io.EOF). The merr package is used to wrap errors and embed further metadata in them, like stack traces and so forth.

Styleguide

Here are general guidelines I use when making decisions about how code in this repo should be written. Most of the guidelines I have come up with myself have to do with package design, since packages are the only thing which have any rigidity and therefore need any rigid rules.

Everything here are guidelines, not actual rules.