go: move vector into main package