Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Created April 12, 2013 22:48
Show Gist options
  • Save larzconwell/5375816 to your computer and use it in GitHub Desktop.
Save larzconwell/5375816 to your computer and use it in GitHub Desktop.
Go versioning
// 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