It's abject hackery because such "comment" directives don't even necessarily have to be a comment to be active:
const x = `This whole thing is
a
//go:generate worse-is-better
multiline
string literal`
A lot of people in this discussion are beating up Go for using syntactical comments for directives, but in reality the implementation is even less principled than that!