forked from tnozicka/goenvtemplator
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added Sprig - useful template functions for Go templates
Added Sprig (useful template functions for Go templates) BREAKING CHAGE: - **`{{ .NonExistsent }}` resolves to empty string** Before `{{ .NonExistsent }}` => `<no-value>` After `{{ .NonExistsent }}` => `` - **function `default` is used from `Sprig` and has another params** Before: `default (env "VAR") "10"` After `env "VAR" | default "10"`
- Loading branch information
Lukáš Svoboda
committed
Feb 13, 2017
1 parent
abf34cf
commit 585ed5e
Showing
9 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
goenvtemplator (2.0.0~rc1) Seznam; urgency=medium | ||
|
||
* Added Sprig (useful template functions for Go templates) | ||
* Breaking chages | ||
- **`{{ .NonExistsent }}` resolves to empty string** | ||
Before | ||
`{{ .NonExistsent }}` => `<no-value>` | ||
After | ||
`{{ .NonExistsent }}` => `` | ||
- **function `default` is used from `Sprig` and has another params** | ||
Before: | ||
`default (env "VAR") "10"` | ||
After | ||
`env "VAR" | default "10"` | ||
|
||
-- Lukas Svoboda <[email protected]> Fri, 10 Feb 2017 16:02:47 +0100 | ||
|
||
goenvtemplator (1.1.0) Seznam; urgency=medium | ||
|
||
* Table driven tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GOENVTEMPLATOR_DEFINED_FILE_VAR=bar |