junevm
junevm
also default tag loading is working as expected for rest config but for redis config we have to specify manually each and every field in yaml. Otherwise they are filled...
specifying explicitly like this working great. ``` Redis: Host: redis:6379 Type: node Weight: 100 ``` someone fix this to load default from tags. @kevwan can you take a look at...
i think goctl template needs to be changed with this `main.go` ```go ```go import "github.com/num30/config" func main() { var c cfg.Config // search for config file in the etc folder...
also it would be nice if goctl generates a config.yml file instead of `.yaml` file
> I don't think the change works well for the existing code. why not? only thing to change is just the tags and main.go code. Everything works just as before
@kevwan can you explain what is the usage of `optional=CertFile`. ```go CertFile string `json:",optional"` CertKeyFile string `json:",optional=CertFile"` CACertFile string `json:",optional=CertFile"` ```
> > @kevwan can you explain what is the usage of `optional=CertFile`. > > ```go > > CertFile string `json:",optional"` > > CertKeyFile string `json:",optional=CertFile"` > > CACertFile string `json:",optional=CertFile"`...
@kevwan Fixed linux lint error. Please try and run the workflow again
@kevwan this is complete
@kevwan please take a look