Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mashiike
Copy link
Contributor

more simple ref #10
this PR include:

  • create Loader: for co-exist with other settings
  • add config.Funcs() and Loader.Funcs()

Realize replacement other than env and must_env

config.go Outdated
}

var envRepTpl *template.Template
var DefaultLoader *Loader
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DefaultLoader must be a private variable. Because it should not be overwritten from out of a package.

Copy link
Collaborator

@fujiwara fujiwara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fujiwara fujiwara merged commit 58d7db8 into kayac:master Mar 26, 2020
@mashiike mashiike deleted the feature/func-map branch March 26, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants