Skip to content

Commit

Permalink
mapsturcture squash into embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Apr 21, 2018
1 parent 95e715c commit 201443e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/template/config_template.go
Expand Up @@ -9,7 +9,7 @@ import (
// for configs `filepath`, must be relative to config_dir
//for configs `pem_filepath` must be relative to pem_dir
type ConfigTemplate struct {
*FileTemplate
FileTemplate `mapstructure:",squash"`
PemFilePath string `mapstructure:"pem_filepath"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/template/file_template.go
Expand Up @@ -10,7 +10,7 @@ import (
)

type FileTemplate struct {
*Template
Template `mapstructure:",squash"`
FilePath string `mapstructure:"filepath"`
}

Expand Down

0 comments on commit 201443e

Please sign in to comment.