woodpecker/vendor/github.com/drone/envsubst
6543 75513575be
Use go's vendoring (#284)
* store dependency's in git

* since we vendor ... rm tech-depts

* aad make target 'vendor' to update vendor folder (manual task)
2021-08-30 19:14:04 +02:00
..
parse Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
path Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
.drone.yml Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
.gitignore Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
eval.go Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
funcs.go Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
go.mod Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
go.sum Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
LICENSE Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
readme.md Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00
template.go Use go's vendoring (#284) 2021-08-30 19:14:04 +02:00

envsubst

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

Documentation

Documentation can be found on GoDoc.

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}