Source file tour/basics/functions-continued.go

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

View as plain text