encutil

package
v0.0.0-...-d47e5ee Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(in interface{}) string

Types

type Marshaler

type Marshaler interface {
	reflectutil.Marshaler
	syntax.Marshaler
}

type MarshalerBase

type MarshalerBase struct {
	Writer io.Writer
	Self   Marshaler

	encoding.CommonOptions
	encoding.EncoderOptions
}

func (*MarshalerBase) Encode

func (m *MarshalerBase) Encode(v interface{}) error

func (*MarshalerBase) MarshalBool

func (m *MarshalerBase) MarshalBool(b bool) error

func (*MarshalerBase) MarshalNumber

func (m *MarshalerBase) MarshalNumber(v constant.Value) (err error)

func (*MarshalerBase) MarshalString

func (m *MarshalerBase) MarshalString(s string) error

func (*MarshalerBase) Option

func (m *MarshalerBase) Option(handle func(interface{}) bool, opts ...interface{}) error

func (*MarshalerBase) WriteComment

func (m *MarshalerBase) WriteComment(prefix string, comments []string, depth int) error

func (*MarshalerBase) WriteIndent

func (m *MarshalerBase) WriteIndent(level int) error

func (*MarshalerBase) WriteNewline

func (m *MarshalerBase) WriteNewline() error

func (*MarshalerBase) WriteQuoted

func (m *MarshalerBase) WriteQuoted(in string, delim rune) error

func (*MarshalerBase) WriteString

func (m *MarshalerBase) WriteString(s string) error

type MultiFile

type MultiFile interface {
	Next(...string) error
	File() fs.File
}

type Namer

type Namer interface {
	Name() string
}

type Stater

type Stater interface {
	Stat() (fs.FileInfo, error)
}

type UnmarshalerBase

type UnmarshalerBase struct {
	NewParser func(io.Reader) syntax.Parser
	Self      reflectutil.Unmarshaler

	encoding.CommonOptions
	encoding.DecoderOptions
	Extensions []string
}

func (*UnmarshalerBase) Decode

func (unmarshaler *UnmarshalerBase) Decode(in io.Reader, v interface{}) error

func (*UnmarshalerBase) Option

func (unmarshaler *UnmarshalerBase) Option(opts ...interface{}) error

Jump to

Keyboard shortcuts

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