decoding

package
v0.0.0-...-20094f8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileValue

type FileValue []byte

FileValue can be used to decode an incoming file value.

func (*FileValue) UnmarshalJSON

func (f *FileValue) UnmarshalJSON(data []byte) error

UnmarshalJSON parses the JSON-encoded flag value.

type FlagValue

type FlagValue string

FlagValue can be used to decode an incoming flag value.

func (FlagValue) MarshalJSON

func (f FlagValue) MarshalJSON() ([]byte, error)

MarshalJSON returns a JSON string encoding of v.

func (*FlagValue) UnmarshalJSON

func (f *FlagValue) UnmarshalJSON(data []byte) error

UnmarshalJSON parses the JSON-encoded flag value.

Jump to

Keyboard shortcuts

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