Brian Picciano
9567a98606
Move massert into internal, and simplify it a lot
...
The previous massert isn't that useful compared to testify, but it's
nice to have some assertion helpers in the repo which don't require a
sub-dependency.
5 months ago
Brian Picciano
ba9bc6c46c
refactor mlog and merr to handle and format error messages better
3 years ago
Brian Picciano
360d41e2b8
Refactor merr, remove almost everything else
3 years ago
Brian P
3e2713a850
Get rid of mcmp, and lots of subsequent refactors
...
Getting rid of mcmp pretty much breaks this whole package, but this
commit makes a good start on fixing all the things worth keeping.
3 years ago
Brian Picciano
467bcbe52d
mctx: refactor to no longer have parent/child logic
5 years ago
Brian Picciano
d5044ad7cb
mctx: add Annotated and polish documentation
5 years ago
Brian Picciano
f5cea76cb7
mtest/massert: rename a bunch of functions
5 years ago
Brian Picciano
4536db8968
merr: refactor Wrap/WrapSkip/New to take multiple contexts rather than annotations
5 years ago
Brian Picciano
4303da03cc
merr/mctx: move stack code into merr
5 years ago
Brian Picciano
e1e52db208
refactor everything to use context's annotation system, making some significant changes to annotations themselves along the way
5 years ago
Brian Picciano
000a57689d
mctx: implement beginnings of Annotations functionality
5 years ago
Brian Picciano
4b446a0efc
mctx: refactor so that contexts no longer carry mutable data
...
This change required refactoring nearly every package in this project,
but it does a lot to simplify mctx and make other code using it easier
to think about.
Other code, such as mlog and mcfg, had to be slightly modified for this
change to work as well.
5 years ago
Brian Picciano
0c2c49501e
mctx: refactor implementation of Context to not use a state stored as a value, but to just wrap a context.Context
5 years ago
Brian Picciano
5bd0790f6e
mctx: implement BreadthFirstVisit
5 years ago
Brian Picciano
92ecb09707
mctx: make GetSetMutableValue lock on the key itself, not the entire map, to allow more throughput when being used on multiple keys at once
5 years ago
Brian Picciano
57bd022093
mrun: implement Thread and Wait
6 years ago
Brian Picciano
b5c676b5c8
mlog: complete refactor again, eliminating the go-routine, which allowed a lot of other things to fall into place nicely
6 years ago
Brian Picciano
47061cec4e
mctx: add Root function, and update some docs
6 years ago
Brian Picciano
cb65787f37
mctx: GetSetMutableValue. Not sure if I'm really going to use this or not
6 years ago
Brian Picciano
e349d0fbd8
mctx: moved ctx code from m and kept fleshing it out, trying to figure out how to incorporate Logger
6 years ago