Reputation: 1312
I'm using struct from subpackage and it works. But on find usage of this structure IDEA doesn't see usages. The same situation on rename for the structure - IDEA renames the original structure and doesn't rename it in all places of usage. How can I fix it, because I don't want to put all go files only in one package.
Upvotes: 0
Views: 1202
Reputation: 26
go project directory like this.
projectname:
bin/
src/
structs/
custom_types.go
main.go
pkg/
Use go build command will auto create bin/pkg directory. src directory contains all go source files.
Upvotes: 1