Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of "File is not `gci`-ed with --skip-generated -s standard,default (gci)"

Tags:

go

golint

I get this error message:

main.go:24: File is not `gci`-ed with --skip-generated -s standard,default (gci)
import (

What does this mean?

Background: I am new to Go, and the linting was not set up by me. I confess that I don't know the actual linter which creates this warning.

like image 931
guettli Avatar asked Nov 20 '25 10:11

guettli


1 Answers

Try

golangci-lint run --fix

and you can go from there!

like image 56
jjkim Avatar answered Nov 22 '25 00:11

jjkim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!