A fork of https://github.com/kellegous/go golinks service with UI fixes and dark theme.

Taddeus Kroes 3f8153b54f Remove Referer header when clicking on shortlinks. 5 days ago
cmd f8d7d23de5 rm builder on interupt 11 months ago
etc 01f30a3de4 update deps 10 months ago
internal 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
ui 3f8153b54f Remove Referer header when clicking on shortlinks. 5 days ago
.dockerignore f1f2f1efcb fixes docker 11 months ago
.gitignore bcd4fc93de Add Vim swapfiles to gitignore 5 days ago
Dockerfile 28d2376d5f update build image 8 months ago
LICENSE cbaa2c2f3f MIT license 9 years ago
Makefile 90bacdc9d7 minor build fixes 10 months ago
README.md 2b38ea595f Fix typo in README. 8 years ago
eslint.config.js 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
go.mod 6717724c2d update deps 2 weeks ago
go.sum 6717724c2d update deps 2 weeks ago
package-lock.json 6717724c2d update deps 2 weeks ago
package.json 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
tsconfig.app.json 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
tsconfig.json 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
tsconfig.node.json 5c0779cebc Cleanup and convert UI to React (#34) 11 months ago
vite.config.ts 789f91b84f cleanup 11 months ago

README.md

A "go" short-link service

Background

The first time I encountered "go" links was at Google. Anyone on the corporate network could register a URL shortcut and it would redirect the user to the appropriate page. So for instance, if you wanted to find out more about BigTable, you simply directed your browser at http://go/bigtable and you would be redirected to something about the BigTable data storage system. I was later told that the first go service at Google was written by Benjamin Staffin to end the never-ending stream of requests for internal CNAME entries. He described it as AOL keywords for the corporate network. These days if you go to any reasonably sized company, you are likely to find a similar system. Etsy made one after seeing that Twitter had one ... it's a contagious and useful little tool. So contagious, in fact, that many former Googlers that I know have built or contributed to a similar system post-Google. I am no different, this is my "go" link service.

One slight difference between this go service and Google's is that this one is also capable of generating short links for you.

Installation

This tool is written in Go (ironically) and can be easily installed and started with the following commands.

GOPATH=`pwd` go install github.com/kellegous/go
bin/go

By default, the service will put all of its data in the directory data and will listen to requests on the port 8067. Both of these, however, are easily configured using the --data=/path/to/data and --addr=:80 command line flags.

DNS Setup

To get the most benefit from the service, you should setup a DNS entry on your local network, go.corp.mycompany.com. 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. Now, simply typing "go" into your browser should take you to the service, where you can register shortcuts. Obviously, those shortcuts will also be available by typing "go/shortcut".

Using the Service

Once you have it all setup, using it is pretty straight-forward.

Create a new shortcut

Type go/edit/my-shortcut and enter the URL.

Visit a shortcut

Type go/my-shortcut and you'll be redirected to the URL.

Shorten a URL

Type go and enter the URL.