Skip to content

as/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

web

implements a Go web server that uses an object to carry request-scoped state

premise

  • context.Context is ugly; minimize its surface area
  • objects carry request-scoped state when given proper method recievers
  • this applies to an http.ServeMux

method

  • Create an object
  • Implement an initial handler method as a value reciever
  • Assign request scoped data to the value
  • Service the request, invoking value or pointer reciever methods from the initial handler if necessary

references

About

implements a Go web server without routers or repetitive context function parameters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages