Created
January 23, 2019 08:28
-
-
Save cjgiridhar/16b53c1997a22f5b3d90674d33ccb038 to your computer and use it in GitHub Desktop.
Example of importing packages in Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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