Skip to content

Instantly share code, notes, and snippets.

@ymotongpoo
Created May 15, 2019 03:01
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 ymotongpoo/38450d35aa1bf3c95396c33f7bd8fbc1 to your computer and use it in GitHub Desktop.
Save ymotongpoo/38450d35aa1bf3c95396c33f7bd8fbc1 to your computer and use it in GitHub Desktop.
Set up custom domain for go get
% curl go.pyspa.org/brbundle
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="go.pyspa.org/brbundle git https://github.com/pyspa/brbundle">
<meta name="go-source" content="go.pyspa.org/brbundle https://github.com/pyspa/brbundle https://github.com/pyspa/brbundle/tree/master{/dir} https://github.com/pyspa/brbundle/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/go.pyspa.org/brbundle/">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/go.pyspa.org/brbundle/">see the package on godoc</a>.
</body>
</html>
% go get -v go.pyspa.org/brbundle
Fetching https://go.pyspa.org/brbundle?go-get=1
Parsing meta tags from https://go.pyspa.org/brbundle?go-get=1 (status code 200)
get "go.pyspa.org/brbundle": found meta tag get.metaImport{Prefix:"go.pyspa.org/brbundle", VCS:"git", RepoRoot:"https://github.com/pyspa/brbundle"} at https://go.pyspa.org/brbundle?go-get=1
go.pyspa.org/brbundle (download)
github.com/dsnet/compress (download)
github.com/gabriel-vasile/mimetype (download)
github.com/golang/snappy (download)
github.com/hashicorp/golang-lru (download)
github.com/shibukawa/zipsection (download)
github.com/dsnet/compress/internal
github.com/hashicorp/golang-lru/simplelru
github.com/dsnet/compress/internal/errors
github.com/golang/snappy
github.com/gabriel-vasile/mimetype/internal/json
github.com/shibukawa/zipsection
github.com/hashicorp/golang-lru
github.com/dsnet/compress/brotli
github.com/gabriel-vasile/mimetype/internal/matchers
github.com/gabriel-vasile/mimetype
go.pyspa.org/brbundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment