diff --git a/README.md b/README.md index f93af92..20f4a99 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ json2go generate --url="https://gorest.co.in/public/v2/users" | Package Name | `--package=api` | `string` | Name of package to generate types into. A nested package path is valid | `main` | | Output File Name | `--output` | `string` | The name of the file that is generated. If a file is provided as input, will use matching name unless explicitly provided. The ".go" extension is not required and will be automatically appended. | `types.go` | | Time Format | `--time=2006-01-02` | `string` | Time format to use while parsing strings for potential time.Time variables. View time.Time constants for possible defaults: https://pkg.go.dev/time#pkg-constants | `RFC3339` | +| Omit Empty | `--omitempty` | `bool` | Appends the omitempty to all object variable tags. | `false` | | Debug logging | `--debug` | `bool` | Will output debugging console logs. | `false` | | Quiet | `--quiet` | `bool` | Will quiet fatal errors. | `false` | | STDOUT | `--out` | `bool` | Instead of generating a Go file, will instead print the contents to STDOUT | `false` |