|
|
|
|
|
by corethree
1041 days ago
|
|
There is no tuple type in go. When you see a func() (A, error) that is not a function returning a tuple. It is a function returning two values that cannot be composed. You can't A(B()) if B returns two values. It's pure comedy. |
|
You can if A is a function which takes two arguments, e.g.
https://go.dev/play/p/Jp4B0L6NJj2