Go: fix overload functions with polymorphic issue