Export types and fields necessary to build configs (for config adapters)

Also flag most fields with 'omitempty' for JSON marshaling
This commit is contained in:
Matthew Holt
2019-05-22 12:32:36 -06:00
parent be9b6e7b57
commit bc00d840e8
11 changed files with 133 additions and 131 deletions

View File

@ -15,7 +15,7 @@ import (
// Browse configures directory browsing.
type Browse struct {
TemplateFile string `json:"template_file"`
TemplateFile string `json:"template_file,omitempty"`
template *template.Template
}