flat

package module
v0.0.0-...-35e8258 Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flat

type Flat struct {
	Path       string
	Delimeter  rune
	Ltrim      bool
	Rtrim      bool
	StringMark []string
	Config     toolkit.M
	// contains filtered or unexported fields
}

func New

func New(path string, r bool, w bool) *Flat

func (*Flat) Close

func (f *Flat) Close() error

func (*Flat) Move

func (f *Flat) Move(step int, from MoveFromEnum) error

func (*Flat) MoveRead

func (f *Flat) MoveRead(obj interface{}, step int, from MoveFromEnum) error

func (*Flat) Open

func (f *Flat) Open() error

func (*Flat) Read

func (f *Flat) Read(obj interface{}) error

func (*Flat) ReadM

func (f *Flat) ReadM() (m toolkit.M, e error)

func (*Flat) ReadString

func (f *Flat) ReadString() (txt string, e error)

func (*Flat) Reset

func (f *Flat) Reset() error

func (*Flat) SplitToM

func (f *Flat) SplitToM(txt string) *toolkit.M

func (*Flat) Write

func (f *Flat) Write(obj interface{}) error

type MetaData

type MetaData struct {
	Name  string
	Type  string
	Valid bool
}

type MoveFromEnum

type MoveFromEnum int
var (
	MoveFromFirst    MoveFromEnum = 0
	MoveFromRelative              = 1
)

Jump to

Keyboard shortcuts

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