fsutils

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

func ExpandHome

func ExpandHome(p string) string

ExpandHome expands leading ~ to the user's home directory.

func ReadFile

func ReadFile(filePath string, required bool, o interface{}, newDecoder func(r io.Reader) Decoder) (err error)

func ReadJSONFile

func ReadJSONFile(filePath string, required bool, o interface{}) (err error)

Types

type Decoder

type Decoder interface {
	Decode(o interface{}) error
}

Decoder decodes

Jump to

Keyboard shortcuts

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