Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> what is this type actually

Do you mean that you don't know what type a certain variable has? If so, just add `theVariableName = false` and try to compile it (or just `go vet ./path/to/folder` from the repo root) and the error message will tell you the type. Same as with every other strongly typed language.



Or if he was to use any kind of decent text editor, he could also just place his mouse over the variable and see the type it has.

Then comes the hard part "where is it defined"... he could even press "command" and then click on it.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: