envprops

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormatError = fmt.Errorf("format error")
)

Functions

func EnvVarName

func EnvVarName(name string, prefix ...string) string

func PropertyLine

func PropertyLine(p Property, prefix ...string) string

func PropertyLineEnv

func PropertyLineEnv(p Property, getenv func(string) string, prefix ...string) string

func WriteProperties

func WriteProperties(w io.Writer, props []*Property) error

Types

type Property

type Property struct {
	Key   string
	Value string
}

func ReadProperties

func ReadProperties(r io.Reader) ([]*Property, error)

func (Property) EnvVarName

func (p Property) EnvVarName(prefix ...string) string

Directories

Path Synopsis
cmd
envprops command

Jump to

Keyboard shortcuts

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