Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go HTTP Servers Tutorial

I was coding along the Go HTTP Servers playlist to learn Go, obviously.

Prerequisite

Some targets in Makefile rely one air and golangci-lint. Make sure to install them if you intend to use Makefile.

If you want to use my git hooks, copy them into your local .git/hooks.

cp script/githooks/* .git/hooks

Note: You will need the cli tools I mentioned above.

Wiki

The current HTTP endpoints:

  • /: Return "Welcome!" on happy path
  • /goodbye: Return "Goodbye!" on happy path
  • /hello?name={name}: Return "Hello, {name}!" on happy path
  • /param/{name}: Return "Hello, {name}!" on happy path
  • /header: Provide a key-value pair "name: {name}" will return "Hello, {name}!" on happy path
  • /json: Provide a JSON with one key-value pair "name: {name}" will return "Hello, {name}!" on happy path

About

Go HTTP Server playlist coding along

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages