Improve Error.Error() performance
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 13 Jun 2020 15:32:04 +0000 (17:32 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 14 Jun 2020 13:50:00 +0000 (15:50 +0200)
commit6a94085eceddccaf258cb8e384fa4aa6d428aa13
tree31b79528911e3a8de0267ad40e6b31356d2daf2f
parent8cf685c73e37c718d1dcfe057caad080196f3e18
Improve Error.Error() performance

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

    BenchmarkError-4               226           65.8          -70.88%
error.go
error_test.go