Convert c++ to google go language