system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package system contains utilities for interacting with the host environment such as reading environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnvVar

func ExpandEnvVar(envVar string) (string, error)

ExpandEnvVar expands an environment variable reference and returns its value trimmed of surrounding spaces. An error is returned if the referenced variable is not set.

func GetEnvOrFail

func GetEnvOrFail(name string) string

GetEnvOrFail retrieves the value of the environment variable with the given name. If the variable is not set, the process exits via log.Fatalf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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