woodpecker/vendor/github.com/drone/envsubst/README

34 lines
722 B
Text
Raw Normal View History

2017-01-18 15:03:38 +00:00
Go package emulates bash environment variable substitution in a string using ${var} syntax. Includes support for bash string replacement functions.
Documentation:
http://godoc.org/github.com/drone/env
Supported Functions:
${var^}
${var^^}
${var,}
${var,,}
${var:position}
${var:position:length}
${var#substring}
${var##substring}
${var%substring}
${var%%substring}
${var/substring/replacement}
${var//substring/replacement}
${var/#substring/replacement}
${var/%substring/replacement}
${#var}
${var=default}
${var:=default}
${var:-default}
Unsupported Functions:
${var-default}
${var+default}
${var:?default}
${var:+default}