jwilder/docker-gen — pull request #40 by md5 (2014-11-30 05:41:07+00:00)
Title: Add functions to handle string prefixes and suffixes

Introduces the following functions:
* `hasPrefix $prefix $s`
* `hasSuffix $suffix $s`
* `trimPrefix $prefix $s`
* `trimSuffix $suffix $s`

These call the corresponding `strings.{Has,Trim}*` functions with the arguments flipped to better facilitate function pipelining for template usage (e.g. `$val := split $input | first | trimSuffix $suffix`).