-
**Describe the bug**
Unable to load configs with custom types and as well as custom `UnmarshalYAML` implementations.
**To Reproduce**
1. The code is
```go
//
// internal/config/config.go
//
…
wjiec updated
1 month ago
-
macOS: 12.3.1
goctl-intellij version:1.1.1
go-zero version: 1.3.3
goctl version 1.3.5 darwin/amd64
use `goctl rpc protoc account.proto --go_out=. --go-grpc_out=. --zrpc_out=.` generate suc…
-
**Describe the bug**
api file:
```
type XXXReq {
Phone string `form:"phone,optional"`
}
```
shell cmd: `goctl api ts ……`
generated ts file:
```
export interface XXXReqParams {
phone:…
-
**Is your feature request related to a problem? Please describe.**
In some scenarios, we may need to perform automatic validation of rpc parameters. for example, `protovalidate-go` library is introdu…
-
I use this command: goctl rpc protoc xxx.proto --go_out=. --go-grpc_out=. --zrpc_out=.
Report an error:rpc service not found
-
``` shell
➜ hell go env | grep 'GOPATH'
GOPATH='/Users/ha666/gopath'
➜ hell goctl env check --install --verbose --force
[goctl-env]: preparing to check env
[goctl-env]: looking up "protoc"
[…
ha666 updated
3 months ago
-
goctl-swagger version 20220215 windows/amd64
name应该为type
```goctl-api
TypeReq {
Type int64 `form:"type,default=0" validate:"oneof=0 1 2 3"`
}
```
执行脚本
```cmd
goctl api plugin -plugin goct…
-
now
- table: t_user, t_role
- genModel: tuser, trole
expect
- table: t_user, t_role
- genModel: user, role
How to achieve this effect with goctl?
-
If I modify the NodePort Range to 1-65535 in the k8s cluster, the goctl kube cannot generate a yaml file, and the error nodePort should be between 30000 and 32767 is reported, can I provide a command …
-
goctl: generation error: template: import:9: unexpected "}" in operand