omitempty

package
v0.0.0-...-f9840df Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type X

type X struct {
	Int int `json:",omitempty"`
}

func (X) MarshalJSON

func (x X) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (X) MarshalTOML

func (x X) MarshalTOML() (interface{}, error)

MarshalTOML marshals as TOML.

func (X) MarshalYAML

func (x X) MarshalYAML() (interface{}, error)

MarshalYAML marshals as YAML.

func (*X) UnmarshalJSON

func (x *X) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

func (*X) UnmarshalTOML

func (x *X) UnmarshalTOML(unmarshal func(interface{}) error) error

UnmarshalTOML unmarshals from TOML.

func (*X) UnmarshalYAML

func (x *X) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals from YAML.

type Xo

type Xo struct {
	Int replacedInt
}

Jump to

Keyboard shortcuts

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