CAICAIIs opened a new pull request, #3217: URL: https://github.com/apache/dubbo-go/pull/3217
Replace deprecated config.Load() pattern with direct server.NewServer() and client.NewClient() API in tools/dubbogo-cli/generator/sample. Changes: - Remove config package imports from gen_client.go and gen_server.go - Replace config.SetConsumerService() with client.NewClient() + api.NewGreeterClient() - Replace config.SetProviderService() with server.NewServer() + api.RegisterGreeterServer() - Remove DUBBO_GO_CONFIG_PATH environment variable dependency - Disable YAML config file generation (gen_c_conf.go, gen_s_conf.go) - Use programmatic configuration via Go API options This aligns with the config-free migration strategy and removes the dependency on the deprecated config package for code generation. ### Description Related: #3204 ### Checklist - [x] I confirm the target branch is `develop` - [x] Code has passed local testing - [x] I have added tests that prove my fix is effective or that my feature works -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
