go packages which are fine
Go to file
Brian Picciano 15efa4ba3a mlog: refactor to handle certain use cases better, and make KV merging more consistent
Logger is now initialized with its WriteCloser (which can never change
after initialization) and then has its properties modified via method
calls. These method calls return new copies of the Logger, all writing
to the same original WriteCloser still. This allows for doing things
like having a Logger within some entity that has its own KV, for
example.

Also I revamped the merging code a bit, and fixed a precedence
inconsitency in ErrWithKV and CtxWithKV.
2018-05-28 07:53:39 +00:00
jstream Implementation of jstream 2018-04-09 17:22:52 +00:00
mcfg mcfg: add some helper methods to Cfg related to its Path 2018-05-28 03:10:57 +00:00
mcrypto mcrypto: move SignVerifier code into Secret, to account for encrypting later on 2018-03-26 10:53:49 +00:00
mdb mcfg: refactor slightly to separate Run into StartRun and StopRun 2018-05-28 02:39:56 +00:00
mhttp mhttp: initial implementation, very basic 2018-05-27 07:59:25 +00:00
mlog mlog: refactor to handle certain use cases better, and make KV merging more consistent 2018-05-28 07:53:39 +00:00
mrpc implement basic mrpc functionality 2018-03-19 17:14:50 +00:00
mtest implement mtest package 2018-02-11 16:05:36 +00:00
mtime mtime: fix older package doc not having been deleted 2018-05-27 07:57:23 +00:00
env.test implement mdb.PubSub 2018-02-15 22:47:18 +00:00
LICENSE Initial commit 2018-01-11 15:47:01 +00:00
README.md README: add styleguide section 2018-03-26 10:54:01 +00: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.

Other third-party packages which integrate into these:

  • merry: used by mlog to embed KV logging information into error instances, it should be assumed that all errors returned from these packages are merry.Error instances. In cases where a package has a specific error it might return and which might be checked for a function to perform that equality check will be supplied as part of the package.

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.