Closed chmorgan closed 7 years ago
@ChrisHines changes pushed, waiting for next round of feedback :-)
@ChrisHines tried to rewrite it without any concatenation. Not sure I'm super happy with the outcome but without the string concatenation I'm guessing its more efficient. Net lines of code went up though. Thoughts? I'm still new to go.
Pull from golantern/stack, revert name changes back to go-stack/stack.
Tested here and reviewed implementation. Looks like a good approach as the call to .Name() does retrieve the package, filename and other information so it seems to make sense to overload the %n handler to also handle %k.
Goal is to have this available for go-kit/log to retrieve a package name.