Skip to content

pete-woods/all-the-frameworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comparison of Go web frameworks

This repository includes some realstic examples of using popular go web frameworks:

Starting the examples

Starting the 4 different examples can be done like follows:

echo (port 8080):

go run ./cmd/echo

fiber (port 8081):

go run ./cmd/fiber

gin (port 8082):

go run ./cmd/gin

httprouter (port 8083):

go run ./cmd/httprouter

Statsd

Start the statsd lister with docker-compose:

docker-compose up -d

and follow the logs:

docker-compose logs -f

Accessing the examples

These commands use httpie. Though I prefer the go version, as it starts super quick, unlike the Python one.

Example command for /v1/bananas:

http localhost:8080/v1/bananas

Example command for /v1/banana/:id:

http localhost:8080/v1/banana/1234

Example command for /v1/admin with basic auth:

http -a foo:bar POST localhost:8080/v1/admin value=hello

About

No description, website, or topics provided.

Resources

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENCE
BSD-3-Clause
LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages