Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created January 23, 2019 08:28
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/16b53c1997a22f5b3d90674d33ccb038 to your computer and use it in GitHub Desktop.
Save cjgiridhar/16b53c1997a22f5b3d90674d33ccb038 to your computer and use it in GitHub Desktop.
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