Sviatoslav
Sviatoslav

Reputation: 1312

No usages found in module in Goland

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.

enter image description here

Upvotes: 0

Views: 1202

Answers (1)

pyscgo
pyscgo

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

Related Questions