Let's say I have all source code for module hosted on github.com/example/my-module
. But I want to create a proxy hosted on example.com/my-module
to redirect all requests to github.com/example/my-module
and use my custom domain name in import
s:
package main
import "example.com/my-module"
instead of:
package main
import "github.com/example/my-module"
According to docs, I can host git repository on example.com/my-module
, but it would be overhead for me.
How can I set up package source code proxy for Go on custom domain? Can I just use HTTP reverse proxy for that or it doesn't work?