Make-shift shebangs for Go

27 points by runxiyu


doctor_eval

This is cursed. I love it.

bryfry

I've said this on a different but related topic.

I wish go would standardize a comment that implements a suppression for warnings across all programs like fix, vet, gopls, etc. Ideally it would also work for every external linting/tree walking analysis program (errcheck, staticcheck, nilaway, etc.)

The fact that many external tools support something like this indicates the demand signal. The fact that there's no standard and the golang official tools lack such capabilities makes it incredibly frustrating to navigate.

I think your gopls problem is my new favorite addition the list of reasons something like an ignore comment should be standardized.

fiatjaf

Shouldn't it be "makeshift"? I'm not an English native speaker but I have the impression that that makes a big difference in the meaning.

runxiyu

(Another small issue is that the location of Go installations could vary a lot between systems, for example, it's prefixed in /usr rather than /usr/local on my system.)