eleven

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandLineArgumentExists

func CommandLineArgumentExists(f string) bool

checks if the command line argument exists (case-sensitive)

func Getenv

func Getenv(key string, fallback string) string

checks if an environment variable exists and if not assigns a default value

func GetenvFile

func GetenvFile(path string, fallback string) string

checks if a file containing an environment variable exists and if not assigns a default value

func ReadFile

func ReadFile(path string) (string, error)

reads a file if it exists and returns the content of the file

func Run

func Run(bin string, params []string) (string, error)

run an external program and return output

func WriteFile

func WriteFile(path string, txt string) error

writes contents to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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