Skip to content

Instantly share code, notes, and snippets.

@eileen-code4fun
Created April 27, 2023 03:39
Show Gist options
  • Save eileen-code4fun/00595efd32298029a2a0ee66fac4390f to your computer and use it in GitHub Desktop.
Save eileen-code4fun/00595efd32298029a2a0ee66fac4390f to your computer and use it in GitHub Desktop.
Sum in Golang
package main
import "fmt"
func sum(a, b int) int {
return a + b
}
func main() {
fmt.Printf("%d\n", sum(1, 2))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment