Skip to content

Instantly share code, notes, and snippets.

@karimkhanp
Created November 13, 2012 09:28
Show Gist options
  • Save karimkhanp/4064849 to your computer and use it in GitHub Desktop.
Save karimkhanp/4064849 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func add(x int, y int) int {
return x + y
}
func main() {
fmt.Println(add(42, 13))
fmt.Println("Helloworld")
}
@ujjwalt
Copy link

ujjwalt commented Nov 20, 2012

Just a small change to make it look better

func add(x, y int) int {
    return x + y
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment