Skip to content

Commit

Permalink
Fix typo and run mod tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bossm8 committed Oct 18, 2023
1 parent d99baa3 commit 1f90d2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/templater.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func (t *variants) loadFromTemplate() {
utils.LoadYMLFromFile(t.VariantsCfgFile, &vc)

tpl := utils.ParseTemplate(t.VariantsTplFile)
res := utils.ExectuteTemplate(vc, tpl)
res := utils.ExecuteTemplate(vc, tpl)

utils.LoadYMLFromBytes(res, t)
}
Expand Down Expand Up @@ -451,7 +451,7 @@ func (t *templater) Render(variants []*variant) {
utils.Error("%s", err)
}

rendered := utils.ExectuteTemplate(
rendered := utils.ExecuteTemplate(
variant.Data,
t.template,
)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,6 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Expand Down
4 changes: 2 additions & 2 deletions utils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/Masterminds/sprig"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Parses a template defined in a file.
Expand Down Expand Up @@ -38,7 +38,7 @@ func ParseTemplate(
}

// Executes a template with the provided data.
func ExectuteTemplate(
func ExecuteTemplate(
tplData map[string]interface{},
tpl *template.Template,
) []byte {
Expand Down

0 comments on commit 1f90d2d

Please sign in to comment.