file

package
v0.0.0-...-4e39a2f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: BSD-2-Clause Imports: 2 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 type manages a file at a given path

func New

func New(p string) File

New returns a new File type

func (File) Path

func (f File) Path() string

Path will return the file's path

func (File) Read

func (f File) Read() ([]byte, error)

Read will read the file

func (File) Write

func (f File) Write(state []byte) error

Write will lock the file

Jump to

Keyboard shortcuts

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