functions and loops in golang
We have already seen functions and used them, but let's just get a refresher of them quickly.
package main
import "fmt"
func add(x, y int) (int, int) {
return x + y, x - y
}
func main() {
fmt.Println(add(2, 2))
}
a function can take one ...
operationsguy.hashnode.dev3 min read