zfile

package
v0.0.0-...-acef3ad Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	FilePath string
	FD       afero.File
	GoozFS   afero.Fs
}

func New

func New(fs afero.Fs, filePath string) *Store

Create empty Store object with Filesystem and Path

func (*Store) Close

func (f *Store) Close() error

Close files correctly

func (*Store) Open

func (f *Store) Open() error

Open FD for reading

func (*Store) Read

func (f *Store) Read() (data []map[string]interface{}, err error)

Marshal everything into map[string]

Jump to

Keyboard shortcuts

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