Skip to content

This is the implementation of the second exercise of the Gophercises course

Notifications You must be signed in to change notification settings

nicolas-sabbatini/go-short

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO short

Description

This is the implementation of the secong exercise of the Gophercises course.
The exercise is about creating a URL shortener. The proyect has 3 binaris that can be used:

  • cmd/go-short/go-short.go: This is the first exercice from the course a shorter handle from a YAML.
  • cmd/go-short-v2/go-short-v2.go: This is the second exercice from the course a shorter handle from a JSON.
  • cmd/go-short-sql/go-short-sql.go: This is the third exercice from the course a shorter handle from a Data base. And has 2 packages:
  • pkg/url-short/url-short.go: This package has the logic of the shortener from a static file.
  • pkg/sqlite-url-short/sqlite-url-short.go: This package has the logic of the the shortener from a SQLitle.

Usage

go run {{binary option}}

Examples

go run cmd/go-short/go-short.go
go run cmd/go-short-v2/go-short-v2.go
go run cmd/go-short-sql/go-short-sql.go

Releases

No releases published

Packages

No packages published