@@ -22,18 +22,18 @@ As you can see, the `-target` supports default `golang`, any git URI, or a local
22
22
### Set custom template variables
23
23
Change any of the following values by passing ` -option="Value" ` CLI flag to ` webrpc-gen ` .
24
24
25
- | webrpc-gen -option | Default | Description | Added in |
26
- | -----------------------| ------------ | -----------------------------------------------------------------------------| ----------|
27
- | ` -pkg=<name> ` | ` "proto" ` | package name | v0.5.0 |
28
- | ` -client ` | ` false ` | generate client code | v0.5.0 |
29
- | ` -server ` | ` false ` | generate server code | v0.5.0 |
30
- | ` -types=false ` | ` true ` | don't generate types | v0.13.0 |
31
- | ` -json=github.com/bytedance/ sonic ` | | use [ sonic] ( https://github.com/bytedance/sonic ) for JSON encoding | v0.18.0 |
32
- | ` -json=jsoniter ` | ` "" ` | use [ jsoniter] ( https://github.com/json-iterator/go ) for JSON encoding | v0.12.0 |
33
- | ` -json=<pkg> ` | | use other drop-in replacement JSON encoding package | v0.18.0 |
34
- | ` -fixEmptyArrays ` | ` false ` | force empty array ` [] ` instead of ` null ` in JSON (see Go [ #27589 ] [ go27589 ] ) | v0.13.0 |
35
- | ` -errorStackTrace ` | ` false ` | enables error stack traces | v0.14.0 |
36
- | ` -webrpcHeader=false ` | ` true ` | enable client send webrpc version in http headers | v0.16.0 |
25
+ | webrpc-gen -option | Default | Description | Added in |
26
+ | -----------------------| -----------| -----------------------------------------------------------------------------| ----------|
27
+ | ` -pkg=<name> ` | ` "proto" ` | package name | v0.5.0 |
28
+ | ` -client ` | ` false ` | generate client code | v0.5.0 |
29
+ | ` -server ` | ` false ` | generate server code | v0.5.0 |
30
+ | ` -types=false ` | ` true ` | don't generate types | v0.13.0 |
31
+ | ` -json=sonic ` | | use [ sonic] ( https://github.com/bytedance/sonic ) for JSON encoding | v0.18.0 |
32
+ | ` -json=jsoniter ` | | use [ jsoniter] ( https://github.com/json-iterator/go ) for JSON encoding | v0.12.0 |
33
+ | ` -json=<pkg> ` | | use alternative drop-in replacement import path for JSON encoding package | v0.18.0 |
34
+ | ` -fixEmptyArrays ` | ` false ` | ` encoding/json ` : fix ` null ` arrays with reflect (see Go [ #27589 ] [ go27589 ] ) | v0.13.0 |
35
+ | ` -errorStackTrace ` | ` false ` | enables error stack traces | v0.14.0 |
36
+ | ` -webrpcHeader=false ` | ` true ` | enable client send webrpc version in http headers | v0.16.0 |
37
37
38
38
Example:
39
39
```
0 commit comments