diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-22 12:32:36 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-22 12:32:36 -0600 |
commit | bc00d840e845d42145954839b88f1e836cd51bfd (patch) | |
tree | 0cd9f1103f3056fbadede6fd7de12ec605f50c02 /modules/caddyhttp/fileserver/browse.go | |
parent | be9b6e7b57d5bbf13d26b1620d34efc4e12284f7 (diff) |
Export types and fields necessary to build configs (for config adapters)
Also flag most fields with 'omitempty' for JSON marshaling
Diffstat (limited to 'modules/caddyhttp/fileserver/browse.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go index 9869801..bf063e5 100644 --- a/modules/caddyhttp/fileserver/browse.go +++ b/modules/caddyhttp/fileserver/browse.go @@ -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 } |