| 60 | } |
| 61 | |
| 62 | type FormatTimeConfig struct { |
| 63 | SrcField string `help:"Field name of the input time" required:"true"` |
| 64 | DstField string `help:"Field name of the output time" required:"true"` |
| 65 | SrcFormat string `help:"Format of the input time" required:"false" default:"UnixDate"` |
| 66 | DstFormat string `help:"Format of the output time" required:"false" default:"unixms"` |
| 67 | } |
| 68 | |
| 69 | func (cfg *FormatTimeConfig) fillDefaults() { |
| 70 | if cfg.SrcFormat == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected