Closed AlekSi closed 7 months ago
1st option will require bumping Go version in go.mod
. 2nd looks much simpler :¯_(ツ)_/¯
After implementing it multiple times in multiple forms, I no longer think there is a good universal output format for BSON values. In some cases, you would want to preserve type information (for example, to output int32, int64, and float64 differently); sometimes, you don't (for example, to output all numbers as just numbers to make them indexable in the logs storage). It is use-case-specific and even handler-specific (text handler essentially removes all type information).
I think we could close that one.
Fair enough. After all it's just a Go value. Closing.
or
given that the representation is always a Go-code-like string? For example,
int32(42)
andint64(42)
.