raws

package
v0.0.0-...-3a3bf57 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRawFileName    = errors.New("raws: no file name (first line was blank)")
	ErrNoRawObjectType  = errors.New("raws: missing OBJECT tag at start of file")
	ErrIncompleteTag    = errors.New("raws: incomplete tag (missing closing bracket)")
	ErrInvalidCharacter = errors.New("raws: invalid character")
)

Functions

func FromChar

func FromChar(r rune) (string, error)

func ToChar

func ToChar(s string) (rune, error)

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Name

func (r *Reader) Name() (string, error)

func (*Reader) ObjectType

func (r *Reader) ObjectType() (string, error)

func (*Reader) Parse

func (r *Reader) Parse(v interface{}) error

func (*Reader) ParseAll

func (r *Reader) ParseAll(v interface{}) error

func (*Reader) ParseAllValue

func (r *Reader) ParseAllValue(v reflect.Value) error

func (*Reader) ParseValue

func (r *Reader) ParseValue(v reflect.Value) error

type Writer

type Writer struct {
	Indent int
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer, name, objectType string) (*Writer, error)

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) Serialize

func (w *Writer) Serialize(v interface{}) error

func (*Writer) SerializeAll

func (w *Writer) SerializeAll(v interface{}) error

func (*Writer) SerializeAllValue

func (w *Writer) SerializeAllValue(v reflect.Value) error

func (*Writer) SerializeValue

func (w *Writer) SerializeValue(v reflect.Value) error

func (*Writer) WriteTag

func (w *Writer) WriteTag(tag []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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