woodpecker/vendor/github.com/drone/envsubst
Thomas Boerger eb06a8dc1c
Upgrade envsubst to latest version
Update the github.com/drone/envsubst to the latest version to include
fixes to the substr function.
2018-10-18 17:40:39 +02:00
..
parse Upgrade envsubst to latest version 2018-10-18 17:40:39 +02:00
path Upgrade envsubst to latest version 2018-10-18 17:40:39 +02:00
eval.go move to envsubst package 2017-01-18 22:03:38 +07:00
funcs.go Upgrade envsubst to latest version 2018-10-18 17:40:39 +02:00
LICENSE move to envsubst package 2017-01-18 22:03:38 +07:00
README upgrade envsubst 2017-03-25 17:53:57 +08:00
template.go move to envsubst package 2017-01-18 22:03:38 +07:00

Go package for expanding variables in a string using ${var} syntax. Includes support for bash string replacement functions.

Documentation:

    http://godoc.org/github.com/drone/envsubst

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}