Documentation ¶
Overview ¶
Package extension is middleware for clean URLs. The root path of the site is passed in as well as possible extensions to try internally for paths requested that don't match an existing resource. The first path+ext combination that matches a valid file will be used.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(c middleware.Controller) (middleware.Middleware, error)
New creates a new instance of middleware that assumes extensions so the site can use cleaner, extensionless URLs
Types ¶
Click to show internal directories.
Click to hide internal directories.