file

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

File represents file operation

func New

func New(getPath model.GetPath, postProcess model.PostProcess) *File

New initializes File based on path

func (*File) Read

func (f *File) Read() (*model.Data, error)

Read reads file from a path

func (*File) Write added in v0.0.3

func (f *File) Write(data *model.Data) error

Write writes data to destination

Jump to

Keyboard shortcuts

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