go: restore go_rule for custom Go rules (#4672) ## Summary rules_go v0.62.0 requires rules that compile or link Go code with cgo to declare the optional C++ toolchain, Apple and C++ configuration fragments, and cgo attributes. Add a helper to define such rules ergonomically. Fixes #4662.