Created
April 12, 2013 22:48
-
-
Save larzconwell/5375816 to your computer and use it in GitHub Desktop.
Go versioning
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
// In a package file, version only | |
// needs to be included in one | |
// source file | |
package test, "1.2.3-pre" | |
// In another program | |
import ( | |
fmt fmt | |
test github.com/hey/test, "1.2.3-pre" | |
) | |
// Then go get will get those | |
// version for dependencies. | |
// To get a specific a certain | |
// package version with go get you | |
// could do | |
go get [package uri] [version] | |
// Defaulting to the most recent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment