io

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFileMode fs.FileMode = 0o600

Variables

This section is empty.

Functions

func CanOverride

func CanOverride(path string, force bool) bool

func CopyFile

func CopyFile(source, dest string) error

func FileExists

func FileExists(path string) bool

func ParseFileMode

func ParseFileMode(modeStr string) (fs.FileMode, error)

func ReadInput added in v0.0.37

func ReadInput(arg string, reader io.Reader) (string, error)

func ReadPasswordFromReader added in v0.0.41

func ReadPasswordFromReader(reader io.Reader) (string, error)

func ReadPasswordInput added in v0.0.41

func ReadPasswordInput() (string, error)

func WriteSecureFile

func WriteSecureFile(filePath string, content []byte, modeStr string, force bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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