Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created January 23, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjgiridhar/4c97402bc7e98224761c4c023a6fdde0 to your computer and use it in GitHub Desktop.
Save cjgiridhar/4c97402bc7e98224761c4c023a6fdde0 to your computer and use it in GitHub Desktop.
Example of command binary in Golang
package main
import "fmt"
func add(a, b int) int {
return a+b
}
func main() {
sum := add(4, 5)
fmt.Printf("Hello, Gopher! Your result is %d\n", sum)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment