go packages which are fine
Go to file
2019-02-02 20:58:18 -05:00
cmd/totp-proxy m: implement NewServiceCtx, use it in totp-proxy 2019-02-02 19:27:28 -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 NewServiceCtx, use it in totp-proxy 2019-02-02 19:27:28 -05:00
mcfg mcfg: ensure all usages end in a period when printing help to cli 2019-02-02 19:35:30 -05:00
mcrypto mlog: remove ErrKV/ErrWithKV, merr.KV/merr.WithValue are used instead 2019-01-15 00:00:24 -05:00
mctx mctx: implement BreadthFirstVisit 2019-01-30 16:04:58 -05:00
mdb mbigtable: implement basic cfg and basic tests 2018-07-21 19:56:50 +00:00
merr merr: implement WithKV 2019-02-02 20:18:39 -05:00
mhttp mtest: implement NewCtx and Run, and use them in mnet and mhttp's tests 2019-02-02 20:58:18 -05:00
mlog mlog: implement LevelFromString 2019-02-02 19:27:10 -05:00
mnet mtest: implement NewCtx and Run, and use them in mnet and mhttp's tests 2019-02-02 20:58:18 -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 mtest: implement NewCtx and Run, and use them in mnet and mhttp's tests 2019-02-02 20:58:18 -05: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.