Golang Pass Function As Parameter Python