json

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshal = json.Marshal
View Source
var Unmarshal = json.Unmarshal

Functions

This section is empty.

Types

type Any

type Any any

Any alias.

type Data

type Data struct {
	Any
}

Data json any field.

func (*Data) AsMap

func (d *Data) AsMap() (mp map[any]any, isMap bool)

AsMap returns self as a map.

func (*Data) Merge

func (d *Data) Merge(other Data) (merged bool)

Merge merges the other into self. Both must be a map.

type Map

type Map = map[string]any

Map alias.

type Ref

type Ref struct {
	ID   uint   `json:"id" binding:"required"`
	Name string `json:"name,omitempty" yaml:",omitempty"`
}

Ref represents a FK.

Jump to

Keyboard shortcuts

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