filestorager

package
v0.0.0-...-ba60b02 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTypeNotSupported = errors.New("Type is not supported!")

Functions

This section is empty.

Types

type Txt

type Txt struct {
	Fields   []storage.Field
	Strings  map[string]string
	Integers map[string]int
	Bools    map[string]bool
}

func (*Txt) AddField

func (txt *Txt) AddField(f storage.Field) error

AddField adds a field to the storage

func (*Txt) Get

func (txt *Txt) Get(fieldID string) (interface{}, bool)

func (*Txt) GetField

func (txt *Txt) GetField(fieldID) (storage.Field, bool)

GetField returns the field

func (*Txt) Set

func (txt *Txt) Set(fieldID string, value interface{}) error

Jump to

Keyboard shortcuts

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