fix: Keep backward-compatibility broken after introduction of values file template (#257)

Fixes #249
This commit is contained in:
KUOKA Yusuke
2018-08-30 16:57:37 +09:00
committed by GitHub
parent 9b71c64ef2
commit b3ebd4cdd0
9 changed files with 287 additions and 170 deletions
-10
View File
@@ -1,15 +1,5 @@
package tmpl
import "io/ioutil"
var DefaultContext *Context
func init() {
DefaultContext = &Context{
readFile: ioutil.ReadFile,
}
}
type Context struct {
readFile func(string) ([]byte, error)
}