Age | Commit message (Collapse) | Author |
|
Use piles from which to draw config values.
Module values can return their name, so now we can do two-way mapping
from value to name and name to value; whereas before we could only map
name to value. This was problematic with the Caddyfile adapter since
it receives values and needs to know the name to put in the config.
|
|
Differentiating middleware and responders has one benefit, namely that
it's clear which module provides the response, but even then it's not
a great advantage. Linear handler config makes a little more sense,
giving greater flexibility and simplifying the core a bit, even though
it's slightly awkward that handlers which are responders may not use
the 'next' handler that is passed in at all.
|
|
See https://github.com/golang/go/wiki/Modules#semantic-import-versioning
|
|
|
|
Removes the version from the package name
|
|
|
|
|
|
Also flag most fields with 'omitempty' for JSON marshaling
|
|
|
|
|
|
|