go-signalcontext.git
3 years agoImprove Error.Error() performance
Joe Wreschnig [Sat, 13 Jun 2020 15:32:04 +0000 (17:32 +0200)]
Improve Error.Error() performance

‘fmt’ is unnecessary to concatenate two strings. `benchcmp` says:

    BenchmarkError-4               226           65.8          -70.88%

3 years agoRemove ‘Signal’ from structure names
Joe Wreschnig [Sat, 13 Jun 2020 15:12:54 +0000 (17:12 +0200)]
Remove ‘Signal’ from structure names

The package is already named ‘signalcontext’, there’s no reason to
further scope `SignalError` or `SignalContext`.

Split error code and tests into a separate file.

3 years agoInitial import
Joe Wreschnig [Sat, 13 Jun 2020 07:13:34 +0000 (09:13 +0200)]
Initial import