(snippet) override if snippet for golang