Content-Length: 240896 | pFad | http://github.com/mubeng/mubeng/commit/54f07fc643151f8b76140211700c375e9173d1b1

9B feat(helper): move collection env to its function · mubeng/mubeng@54f07fc · GitHub
Skip to content

Commit

Permalink
feat(helper): move collection env to its function
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Sep 21, 2022
1 parent 24e481e commit 54f07fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/helper/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

// Eval subtitute `i` strings
func Eval(i string) string {
m = getEnviron()

t := fasttemplate.New(i, "{{", "}}")
s := t.ExecuteStringStd(m)

Expand Down
1 change: 0 additions & 1 deletion pkg/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package helper

func init() {
m = make(map[string]interface{})
m = getEnviron()
}

0 comments on commit 54f07fc

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/mubeng/mubeng/commit/54f07fc643151f8b76140211700c375e9173d1b1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy