format

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadFormat = errors.New("bad format")

Functions

This section is empty.

Types

type Format

type Format int
const (
	TonyFormat Format = iota
	YAMLFormat
	JSONFormat
)

func ParseFormat

func ParseFormat(v string) (Format, error)

func (Format) IsJSON

func (f Format) IsJSON() bool

func (Format) IsTony

func (f Format) IsTony() bool

func (Format) IsYAML

func (f Format) IsYAML() bool

func (Format) MarshalText

func (f Format) MarshalText() ([]byte, error)

func (Format) String

func (f Format) String() string

func (*Format) UnmarshalText

func (f *Format) UnmarshalText(d []byte) error

Jump to

Keyboard shortcuts

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