{"action":"opened","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1250","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1250/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1250/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1250","id":56474972,"number":1250,"title":"[1.0] variables marks as unused when it is inside of a custom type that is inside in a struct","user":{"login":"dashaus","id":1870208,"avatar_url":"https://avatars.githubusercontent.com/u/1870208?v=3","gravatar_id":"","url":"https://api.github.com/users/dashaus","html_url":"https://github.com/dashaus","followers_url":"https://api.github.com/users/dashaus/followers","following_url":"https://api.github.com/users/dashaus/following{/other_user}","gists_url":"https://api.github.com/users/dashaus/gists{/gist_id}","starred_url":"https://api.github.com/users/dashaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dashaus/subscriptions","organizations_url":"https://api.github.com/users/dashaus/orgs","repos_url":"https://api.github.com/users/dashaus/repos","events_url":"https://api.github.com/users/dashaus/events{/privacy}","received_events_url":"https://api.github.com/users/dashaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T03:23:31Z","updated_at":"2015-02-04T03:23:31Z","closed_at":null,"body":"The inspector does not detect the use of variables when it is used inside of a custom type that is inside in a struct\r\n\r\n```go\r\npackage main\r\n\r\ntype language struct {\r\n    name text\r\n}\r\n\r\ntype text map[string]string\r\n\r\nfunc main() {\r\n    langId := \"es\"\r\n\r\n    // the inspector marks langId as \"unused variable\"\r\n    _ = language{name: text{langId: \"hola\"}}\r\n}\r\n```"}}