Golang reported an error in importing its own package

Reason: after using the GIT clone project, the project root path is a lowercase English name, such as cmdbapi, but when the import in the project imports its own related packages, an error is reported in red

 

 

Solution: rewrite the project name to the name of the import package, namely cmdbapi. Of course, you can also rewrite the import package to lowercase

Similar Posts: