Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created January 23, 2019 08:28
Embed
What would you like to do?
Example of importing packages in Golang
package main
import "fmt"
import "github.com/cjgiridhar/mathematics"
/*func add(a, b int) int {
return a+b
}*/
func main() {
sum := mathematics.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