Created
September 20, 2012 15:21
-
-
Save benevolent0505/3756561 to your computer and use it in GitHub Desktop.
「A Tour of Go」でGo言語を学ぶ(~#8) ref: http://qiita.com/items/71cc2b5ef7d8c939efa0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func add(x int, y int) int { | |
return x + y | |
} | |
func main() { | |
fmt.Println(add(42, 13)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment