Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

go-extras/strutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

confutils

This package provides a set of functions to work with config files

Provided functions

// Looks given text (given as slice of bytes) for %ENV(VARIABLE),
// where VARIABLE is any possible variable name.
// If environment variable `VARIABLE` exists, replaces the whole
// expression with the variable value (even if it's empty).
// If the environment variable does not exist, keeps the expression as is.
func SubstEnvVars(text []byte) []byte {
    // ...
}
// String version of SubstEnvVars()
func SubstStringEnvVars(text string) string {
    // ...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages