loadfiles

package
v0.0.0-...-215f8f3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(dir File, obj interface{}) error

func Store

func Store(dir File, obj interface{}) error

Types

type File

type File interface {
	Open() (io.ReadCloser, error)
	Create() (io.WriteCloser, error)
	In(filename string) File
	String() string
}

type GitFile

type GitFile struct {
	Repo string
	Rev  string
	Path string
}

func (GitFile) Create

func (f GitFile) Create() (io.WriteCloser, error)

func (GitFile) In

func (f GitFile) In(filename string) File

func (GitFile) Open

func (f GitFile) Open() (io.ReadCloser, error)

func (GitFile) String

func (f GitFile) String() string

type OsFile

type OsFile string

func (OsFile) Create

func (f OsFile) Create() (io.WriteCloser, error)

func (OsFile) In

func (f OsFile) In(filename string) File

func (OsFile) Open

func (f OsFile) Open() (io.ReadCloser, error)

func (OsFile) String

func (f OsFile) String() string

Jump to

Keyboard shortcuts

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