file

package
v0.0.0-...-a4f77ab Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

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

func NewFileStore

func NewFileStore(opts ...Option) *FileStore

func (*FileStore) Keys

func (f *FileStore) Keys(path ...string) []string

func (*FileStore) Perfix

func (f *FileStore) Perfix() string

func (*FileStore) Read

func (f *FileStore) Read(key string, to interface{}) error

func (*FileStore) ReadAll

func (f *FileStore) ReadAll(to interface{}) (err error)

func (*FileStore) Write

func (f *FileStore) Write(key string, value interface{}) error

type Option

type Option func(*FileStore)

func Dir

func Dir(dir string) Option

func Suffix

func Suffix(suffix string) Option

Jump to

Keyboard shortcuts

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