Another Google-like Go short link service
MIT License
516
13
112

I tried using the installation directions on a Raspberry Pi (running stretch) and it did not work:

$ GOPATH=`pwd` go install github.com/kellegous/go
can't load package: package github.com/kellegous/go: cannot find package "github.com/kellegous/go" in any of:
...

I then cloned the repo and tried using the Makefile. First run of make found several problems with sass:

  • The current version does not recognize --no-cache as an option
  • The --sourcemap=none option is now --no-source-map

Next closure-compiler does not seem to be the binary for any closure compiler I could find. I installed google-closure-compiler and updated the binary name to that.

Is there a way to have something like

http://go/find/xyz

go to

http://example.com/real-link/search?q=xyz

Is there any way to retrieve a list of known short urls? If not, can I make a feature request? :)

We recently open-sourced our own go links implementation, Trotto. We're in the process of open-sourcing the Chrome extension that we built to make it easy to set up the go/somewhere magic, with or without DNS.

Right now, the extension works with the instance we manage at https://trot.to/_/auth/login, but there's no reason the extension couldn't work with other go links backends. Would you be interested in working with us to make the extension work with this go links implementation?

Hi, how do you delete a link?

Would love to be able to set this up in an HA configuration, and the dependency on local storage makes this difficult. Would it be possible to add an option to use an external RDBMS such as Postgres or MySQL? Happy to contribute this myself, too, just new to Go and would need some pointing at where to make changes.

To protect access I'm using google's IAP and having go.corp.foo.com redirect to golinks.corp.foo.com. Having the generated urls come out as http://go/short-url vs http://golinks.corp.foo.com/short-url would be nice.

You wrote in the README:
Make sure that corp.mycompany.com is in the search domains for each user on the network. This is usually easily accomplished by configuring your DHCP server.

How do I do that? I'm using Amazon Route53 and have it serving on the long domain (go.corp.example.com) but how do I allow users to just type go in their browser?