diff options
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -161,10 +161,8 @@ func (d *Duration) UnmarshalJSON(b []byte) error { return nil } -// MarshalJSON satisfies json.Marshaler. -func (d Duration) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(`"%s"`, time.Duration(d).String())), nil -} +// CtxKey is a value type for use with context.WithValue. +type CtxKey string // currentCfg is the currently-loaded configuration. var ( |