utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidatorKey  = "ValidatorKey"
	TranslatorKey = "TranslatorKey"
)

Variables

View Source
var (
	// change to false, if you don't need json.Number to represent Numbers
	UseNumber bool = true
)

Functions

func TransInit

func TransInit(c *gin.Context)

Types

type OrderedArray

type OrderedArray []interface{}

func (OrderedArray) MarshalJSON

func (arr OrderedArray) MarshalJSON() ([]byte, error)

MarshalJSON implementation of interface Marshaler

func (*OrderedArray) UnmarshalJSON

func (arr *OrderedArray) UnmarshalJSON(b []byte) error

type OrderedMap

type OrderedMap struct {
	Values []OrderedValue
}

func (OrderedMap) MarshalJSON

func (om OrderedMap) MarshalJSON() ([]byte, error)

MarshalJSON implementation of interface Marshaler

func (*OrderedMap) UnmarshalJSON

func (om *OrderedMap) UnmarshalJSON(b []byte) error

UnmarshalJSON implementation of interface Unmarshaler

type OrderedValue

type OrderedValue struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

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