serializer

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL