We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.8.5
With source file main.go containing import "C":
main.go
import "C"
package main import ( "fmt" "math/rand" ) import "C" func main() { fmt.Println(rand.Int()) }
Run gci output main.go
gci output main.go
No change to source file
gci wants to insert a duplicate of the first import block:
gci
package main import ( "fmt" "math/rand" ) import "C" import ( "fmt" "math/rand" ) func main() { fmt.Println(rand.Int()) }
I note a similar issue marked as closed. Possible regression?
The text was updated successfully, but these errors were encountered:
Thanks for your report. #106 provides this feature and assumes that the C import block is always the first.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of GCI are you using?
Reproduce Steps
With source file
main.go
containingimport "C"
:Run
gci output main.go
What did you expect to see?
No change to source file
What did you see instead?
gci
wants to insert a duplicate of the first import block:I note a similar issue marked as closed. Possible regression?
The text was updated successfully, but these errors were encountered: