Kevin Wan
Kevin Wan
Did you start the server?
You need to start the server, otherwise, options doesn't apply. Also, bindRoutes for each request causes memory leak.
Use the latest version. It works for "$1.0" in config.
main.go ```go package main import ( "flag" "fmt" "github.com/zeromicro/go-zero/core/conf" ) type Config struct { Price string } var configFile = flag.String("f", "config.yaml", "the config file") func main() { flag.Parse() var...
`os.ExpandEnv()` doesn't support escaping `$` char. So if you want to use `$` char, don't use `conf.UseEnv()`.
I think you might need to reach out to GKE support engineers.
Please give more details or write an example code.
I think the best practice is not to use DB in redis.
No, you don't need to do it on your own. `net/http` handler will do it after the handler finishes.
There is `MaxBytes` in config, you can set the max body length.