files

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

func ReadFile

func ReadFile(path string) (string, error)

func ValidateExists

func ValidateExists(path string) error

ValidateExists ensures the file exists

func ValidateExtension

func ValidateExtension(path string, allowedExts []string) error

ValidateExtension ensures the file has a supported extension

func WriteFile

func WriteFile(path, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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