Replaced by https://github.com/bep/helpers
This library has one Go func, Expand
, which is similar to os.Expand – with one major difference: It only considers ${var}
.
This may sound limiting, but os.Expand
has lots of situations where it breaks, e.g. regular expressions.
Note that this implementation may also be slower than the stdlib variant (I will eventually add some benchmarks), so don't use it on William Shakespeare's complete works.