Source file tour/basics/functions.go
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 func add(x int, y int) int { 8 return x + y 9 } 10 11 func main() { 12 fmt.Println(add(42, 13)) 13 } 14
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 func add(x int, y int) int { 8 return x + y 9 } 10 11 func main() { 12 fmt.Println(add(42, 13)) 13 } 14