Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.