Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用子包中的结构,它可以工作。但是在查找此结构的用法时,IDEA 没有看到用法。结构重命名的情况相同 - IDEA 重命名原始结构,并且不会在所有使用位置重命名它。我该如何解决它,因为我不想将所有 go 文件只放在一个包中。
像这样去项目目录。
projectname: bin/ src/ structs/ custom_types.go main.go pkg/
使用 go build 命令将自动创建 bin/pkg 目录。src 目录包含所有 go 源文件。