Gopher is a transpiler that transfers basic codes written in Python to basic codes written in Go. If you want to know more about how the transpiler works, read the documentation.
go run main.go <python-file>
- Input code:
def soma(a, b):
return a + b
if __name__ == "__main__":
print(soma(1, 2))
- Output code:
func soma(a,() {a + b
}