Skip to content

Express.js implementation in pure golang and built-in libraries

Notifications You must be signed in to change notification settings

MridulDhiman/goexpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Express.js implementation in golang (ongoing)

Features:

  1. Custom router implementation.
  2. Route Groups.
  3. Local and global middleware support.
  4. Query and path parameter parsing.

Key Takeways:

  1. Whenever we make a HTTP request, browser also requests for favicon.ico.
  2. For custom router implementation, we also have to reimplement all the functions in the http.Handler interface.
  3. You can add multiple (key,value) pairs to request context, without affecting it's original structure.
  4. You can use variadic parameters (e.g. func (x ...int)) for providing any no. of parameters to go functions
  5. You cannot have struct(or pointer to struct) as map key.

Issues(for now):

  1. Does not check for duplicate route entries across multiple route groups
  2. Does not check for duplicate middleware entries from local and global middlewares

About

Express.js implementation in pure golang and built-in libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages