Skip to content

scriptnsam/url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruction for use

Edit the config package

d, err := gorm.Open("mysql", "username:password@tcp(IP-Address:3306)/u_shortner?charset=utf8&parseTime=True&loc=Local")

Change the DB username, password and ip address respectively

Endpoints

The root path / with the GET method retrives all created url from the database

To create a new url, use the /create route with the POST method

About

a simple url shortener using Go net/http package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages