From 9a9db972a73a641e5c2a429781b0ec15ee204d8e Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 17 Nov 2024 16:50:04 +0100 Subject: [PATCH] omitempty --- config.go | 7 +++---- version.go | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config.go b/config.go index 4af7d6b..81a7bf3 100644 --- a/config.go +++ b/config.go @@ -23,7 +23,6 @@ type Config struct { Apps []AppConfig `json:"apps"` Timezone string `json:"timezone"` Admin *AdminConfig `json:"admin"` - Debug bool `json:"debug"` box map[string]*Box `json:"-"` apps map[string]*App `json:"-"` timezone *time.Location `json:"-"` @@ -48,9 +47,9 @@ type AppConfig struct { Schedule []string `json:"schedule"` Sources []string `json:"src"` Destinations []string `json:"dest"` - Before map[string]string `json:"before"` - After map[string]string `json:"after"` - Active bool `json:"active"` + Before map[string]string `json:"before,omitempty"` + After map[string]string `json:"after,omitempty"` + Active bool `json:"active,omitempty"` } // Load config from file diff --git a/version.go b/version.go index a6e8a9f..e179375 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "6fcf8b4" +var githash = "86da866" var branch = "master" -var buildstamp = "2024-11-17_15:41:40" -var commits = "92" -var version = "6fcf8b4-b92 - 2024-11-17_15:41:40" +var buildstamp = "2024-11-17_15:49:40" +var commits = "93" +var version = "86da866-b93 - 2024-11-17_15:49:40"