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

34 lines
703 B
Text
Raw Normal View History

2017-03-25 09:53:57 +00:00
Go package for expanding variables in a string using ${var} syntax. Includes support for bash string replacement functions.
2017-01-18 15:03:38 +00:00
Documentation:
2017-03-25 09:53:57 +00:00
http://godoc.org/github.com/drone/envsubst
2017-01-18 15:03:38 +00:00
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}