File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 55 "log"
66 "path/filepath"
77 "strings"
8- "time"
98
109 "github.com/alehechka/json2go/jenshared"
1110 "github.com/alehechka/json2go/utils"
@@ -66,5 +65,5 @@ func (c *Config) prepareOutputFileName() {
6665}
6766
6867func (c * Config ) getTimeFormat () string {
69- return utils .GetTimeFormat (c .TimeFormat , time . RFC3339 )
68+ return utils .GetTimeFormat (c .TimeFormat , utils . TimeFormatMap [ DefaultTimeFormat ] )
7069}
Original file line number Diff line number Diff line change 11package gen
22
33// DefaultOutputFile is the name of the default output file
4- const DefaultOutputFile = "types.go"
4+ const DefaultOutputFile string = "types.go"
55
66// DefaultPackage is the name of the default package
7- const DefaultPackage = "main"
7+ const DefaultPackage string = "main"
88
99// DefaultRootName is the default name of the top-level JSON object
10- const DefaultRootName = "Root"
10+ const DefaultRootName string = "Root"
11+
12+ // DefaultTimeFormat is the default time format to parse with.
13+ const DefaultTimeFormat string = "RFC3339"
You can’t perform that action at this time.
0 commit comments