util

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath added in v0.3.1

func ExpandPath(path string) (string, error)

ExpandPath converts the file path to include the home directory when prefixed with `~`.

func ReadArgsFile

func ReadArgsFile(path string, args map[string]string) error

ReadArgsFile parses the args file and populates the map with the contents of that file. The parsing follows the following rules: * each line should contain only a single key=value pair * lines starting with # are ignored * empty lines are ignored * any line not following the above patterns are ignored with a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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