JBoss Community

[Golang] Create a server that acts as a URL shortener

Prerequisites: Basic Golang knowledge

Task goals: Create an http.Handler that checks the path of any incoming web requests and forwards them to the pre-determined webpage.

For example, localhost/go could redirect the user to https://golang.org/.

For the redirection data use a simple map, with the incoming paths as keys and the target destinations as values.

Completion requirements:

Link to a Github repo with the code

Task tags

  • golang
  • handler
  • server

Students who completed this task

CodeNinja, melunian, Lichtut, Nathan Wangidjaja, Akash Bhave, Mukundan314, a1phat0ny, Aayushman, s091424, Anglov, Skyterix, SayamSawai, ntrung03, Dan Vixent, SamuelMJN, adibaby

Task type

  • code Code
close

2019