فهرست منبع

Add omitempty to requires property.

Mariano Cano 6 سال پیش
والد
کامیت
528d0910ab
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      templates/templates.go

+ 1 - 1
templates/templates.go

@@ -106,7 +106,7 @@ type Template struct {
 	TemplatePath string       `json:"template"`
 	Path         string       `json:"path"`
 	Comment      string       `json:"comment"`
-	RequiredData []string     `json:"requires"`
+	RequiredData []string     `json:"requires,omitempty"`
 	Content      []byte       `json:"-"`
 }