fileutils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

FileExists checks if a given file exists.

func MustReadConfigFile

func MustReadConfigFile(filename string, locations []string) ([]byte, string)

MustReadConfigFile checks if a file exists in one of the configuration directories and returns the content. If no file is found, we exit.

func MustReadFile

func MustReadFile(filename string) []byte

MustReadFile reads a given file and returns the content. If an error occurs the application terminates.

func ReadFile

func ReadFile(filename string) ([]byte, error)

ReadFile reads a given file and returns the content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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