Open anatol opened 2 years ago
The output of struct's String() suppose to be consumed as a formatted text primarily by a human. With something like this fmt.Printf("%+v", event).
String()
fmt.Printf("%+v", event)
Unfortunately current String() has a number of problems:
Printf()
Please remove the custom incorrect String() implementation and consider using the default implementation.
The output of struct's
String()
suppose to be consumed as a formatted text primarily by a human. With something like thisfmt.Printf("%+v", event)
.Unfortunately current
String()
has a number of problems:Printf()
does not print Env, probably because the current string prints NUL-symbol (it is a bad idea to use NUL-symbol).Please remove the custom incorrect
String()
implementation and consider using the default implementation.