Skip to content

Private struct fields from other packages are show in completion suggestion #1899

@dlsniper

Description

@dlsniper

Using the commit 7d7514f (latest at the time of writing).
In the following example the struct private fields are show in the completion suggestion as well as properly highlighted / resolved to the right fields of the original struct.

package main import "net/http" func main() { tr := &http.Transport{ wantIdle: false, // this field shouldn't be resolved idleCo<cursor> // here there shouldn't be shown any completion values } _ = tr }

The error the compiler shows is: unknown http.Transport field 'wantIdle' in struct literal

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions