Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSON = jsoniter.Config{ TagKey: "jackadi", UseNumber: true, }.Froze()
reserialize to is a trick to be able to convert easily any kind of structure to a structpb.Value, and to enable custom struct tag.
jsoniter is faster, keep the same de.ser behavior than JSON used by structpb.Value. but it is also useful to better handle struct tags: - does not use "json" struct tag as users are not expecting to have the struct tag reused when returning result to Jackadi. - enables the user to control the output field name with "jackadi" struct tag.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.