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.
About gci
GCI, a tool that control golang package import order and make it always deterministic.
This solved the above warning for me:
gci write --skip-generated -s standard,default .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.