omitempty
This commit is contained in:
parent
86da86684b
commit
9a9db972a7
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user