file

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "file"
)

Functions

This section is empty.

Types

type FileSource

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

func NewSource

func NewSource(path string, encoder encoder.Encoder) (fs *FileSource, err error)

func (*FileSource) Load

func (fs *FileSource) Load(dst any) (err error)

func (*FileSource) Name

func (fs *FileSource) Name() string

func (*FileSource) Read

func (fs *FileSource) Read() (d []byte, err error)

func (*FileSource) Watch

func (fs *FileSource) Watch() (w source.Watcher, err error)

Jump to

Keyboard shortcuts

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