GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - beyang/go-get-redirect: Package goredirect enables you to redirect `go get` to map from one set of repository URLs to another.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd/goredirect
cmd/goredirect
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
goredirect.go
goredirect.go
 
 
goredirect_test.go
goredirect_test.go
 
 
stringmapper.go
stringmapper.go
 
 
stringmapper_test.go
stringmapper_test.go
 
 
template.go
template.go
 
 

Repository files navigation

Package go-get-redirect

xrefs funcs top func

Package goredirect enables you to redirect go get to map from one set of repository URLs to another. You can use it to create a standalone server or wrap an existing one.

For a quick demo:

go install github.com/beyang/go-get-redirect/...
sudo sh -c 'echo "127.0.0.1 right.here" >> /etc/hosts'
sudo goredirect`
go get right.here/beyang/go-get-redirect

Observe that $GOPATH/src/right.here/beyang/go-get-redirect now holds identical contents to $GOPATH/src/github.com/beyang/go-get-redirect.

For usage examples, look at cmd/goredirect/cmd.go and the more extensive test cases in goredirect_test.go.

Notes

  • go get assumes all hostnames have at least one . in them, so go get localhost/repo/path will not work. In the dev environment, you can get around this by adding a dummy host (e.g., right.here) to /etc/hosts.

  • For development purposes, you can pass a custom port number with the --port flag, but go get assumes the server listens on port 80 (or 443 for HTTPS).

About

Package goredirect enables you to redirect `go get` to map from one set of repository URLs to another.

Resources

Readme
BSD-2-Clause license
Activity

Stars

9 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.