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 2020/09/17 04:05:21 UTC
[GitHub] [dubbo-go] songjiayang opened a new issue #762: merge package import
songjiayang opened a new issue #762:
URL: https://github.com/apache/dubbo-go/issues/762
**What happened**:
import with multiple times, for example https://github.com/apache/dubbo-go/blob/master/config_center/configurator/override_test.go#L19
```golang
import (
"testing"
)
import (
"github.com/stretchr/testify/assert"
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
)
```
**What you expected to happen**:
import once, after refactor:
```golang
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
)
```
The rules to follow are:
1. import once.
2. different section with blank line.
3. system library import first, then third party, internal last.
----------------------------------------------------------------
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.
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
[GitHub] [dubbo-go] AlexStocks commented on issue #762: merge package import
Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #762:
URL: https://github.com/apache/dubbo-go/issues/762#issuecomment-693861224
thx for ur suggestions. this code format is dubbo-go coding style.
----------------------------------------------------------------
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.
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
[GitHub] [dubbo-go] AlexStocks closed issue #762: merge package import
Posted by GitBox <gi...@apache.org>.
AlexStocks closed issue #762:
URL: https://github.com/apache/dubbo-go/issues/762
----------------------------------------------------------------
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.
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