diff --git a/README.md b/README.md index ce261ad..678d96b 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,9 @@ This repository contains useful code that we use in our Go projects. -## Random -Random generates cryptographically random strings. This can be used to generate variables such as session IDs. +## Examples -## Web -### FileServer -FileServer creates a file server that serves files from from a "Root" folder. It will call "NotFound" HandlerFunc if the path contains '..' or if the file cannot be found on the system - -### Server -Server extends the default HTTP server with graceful shutdown on receiving `SIGINT` or `SIGTERM`. The web server is a 1 to 1 replacement of http.Server's `ListenAndServe()`. - -Example code: +### web.Server ``` import ( "log"