Skip to content

Instantly share code, notes, and snippets.

@ahrtr
ahrtr / go_functional.go
Created July 10, 2018 01:47 — forked from jakecoffman/go_functional.go
Example of functional programming in Golang.
package main
import "fmt"
func main() {
sum := Sum(1, 2, 3, 4)
fmt.Println(sum)
}
type any interface{}