Explorar o código

change ShowIf to interface{}

Ivan Galakhov %!s(int64=5) %!d(string=hai) anos
pai
achega
4dbbe3a95a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/models/templates.go

+ 1 - 1
internal/models/templates.go

@@ -36,7 +36,7 @@ type FormTab struct {
 type FormSection struct {
 type FormSection struct {
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Name     string         `yaml:"name" json:"name"`
 	Name     string         `yaml:"name" json:"name"`
-	ShowIf   string         `yaml:"show_if" json:"show_if"`
+	ShowIf   interface{}    `yaml:"show_if" json:"show_if"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 }
 }