You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/19 11:06:52 UTC

[GitHub] [dubbo-go] sanxun0325 commented on issue #1936: Can I add a cutom parameter when registering a dubbo service provider like Java?

sanxun0325 commented on issue #1936:
URL: https://github.com/apache/dubbo-go/issues/1936#issuecomment-1159691093

   example:
   **define custom parameters in dubbogo.yml**
   ```go
   dubbo:
     application:
     ......
     registries:
     ......
     custom:
       config-map:
         key: value
   ```
   **get custom parameters**
   ```go
   value := config.GetRootConfig().Custom.GetDefineValue("key", "default_value")
   ```


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org