Python to Go string code