Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (19 sloc) 737 Bytes


A Caddy plugin to add gopkg-like functionality to your own web sites.


gopkg [path] [repo-uri]

gopkg [path] [vcs] [repo-uri] {
  // default vcs is git
  gopkg /multistatus
  gopkg /chrisify

  // use mercurial
  gopkg /myrepo hg

The above would make the repos go get-able via go get, go get, and go get

If the urls are visited normally the browser will be redirected to the repo uri.

Once implemented, go get can enforce your import paths with import path checking.