Skip to content

popovicu/go-easy-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy HTTP server in Go

This small repo is meant to demonstrate an HTTP server which is super easy to build and deploy.

Please read the accompanying article on my website for more details.

Building

bazel build //server

This should result in a single binary file that is ready to be deployed.

Running

You can build with the command above and manually invoke the binary, but with Bazel it's cleaner to use the run command.

bazel run //server

You can then test it with:

curl http://localhost:12345/hello/foo

Output:

Hello foo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published