Use go:embed for statics (#92)
This commit is contained in:
parent
ddda39b22a
commit
1d769673ca
7 changed files with 13 additions and 76 deletions
config
|
@ -22,7 +22,7 @@ func NewHandler(path string) *Handler {
|
|||
}
|
||||
|
||||
func (c *Handler) createFromTemplateFile() ([]byte, error) {
|
||||
t, err := distribyted.HttpFS.Open("/templates/config_template.yaml")
|
||||
t, err := distribyted.Templates.Open("templates/config_template.yaml")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue