Closed
Description
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