4 ms·
> 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
by majewsky 1y ago
> 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.
- alain_gilbert 1y agoOr 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.