gomock1

command module
v0.0.0-...-6c16b56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 10 Imported by: 0

README

http-boilerplate

An example of a reasonably complex web server in Go.

What's Included

This is a boilerplate application designed to show how to build web applications in Go. The following features are already set up:

  • HTTPS through Let's Encrypt
  • An API subrouter
  • A demo of authentication middleware
  • Static file serving
  • Graceful shutdown

This application largely uses the standard library. Routing is provided by the go-chi/chi package, and Let's Encrypt functionality is provided by the autocert package.

More Information

For more information on the design behind this boilerplate, please refer to the blog post.

Usage

To start using this library, it's recommend to fork this repository. Then, you can update the import paths to point to your local copy.

Pull Requests Welcome!

This is just one way to structure web servers in Go. I'd love to get feedback on possible improvements, so please don't hesitate to send a pull request!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL