From dc33d84a48f181c9656a2ab3c47cb8a29ffbf5cd Mon Sep 17 00:00:00 2001 From: Wang Long Date: Sat, 31 Oct 2015 23:54:56 +0800 Subject: [PATCH] config/types.go: add "" to field tag The field tag format accepted is[1]: `(...) yaml:"[][,[,]]" (...)` so we should add double quotation marks for the filed tag format. [1]: https://godoc.org/gopkg.in/yaml.v2 Signed-off-by: Wang Long --- config/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/types.go b/config/types.go index 3bb5381e..bef0c3c8 100644 --- a/config/types.go +++ b/config/types.go @@ -52,12 +52,12 @@ type ContainerConfig struct { Cmd string `yaml:"run,omitempty"` MigrateVolumes bool `yaml:"migrate_volumes,omitempty"` ReloadConfig bool `yaml:"reload_config,omitempty"` - CreateOnly bool `yaml:create_only,omitempty` - Service *project.ServiceConfig `yaml:service,omitempty` + CreateOnly bool `yaml:"create_only,omitempty"` + Service *project.ServiceConfig `yaml:"service,omitempty"` } type Repository struct { - Url string `yaml:url,omitempty` + Url string `yaml:"url,omitempty"` } type Repositories map[string]Repository