Documentation
¶
Overview ¶
Package duration parses the duration shape docsync writes in directives and in configuration: an integer followed by a unit.
It lives here, below both, because two callers need the same grammar and neither should import the other for it: the directive verbs read `expires=` and `review_every=`, and `[check] snapshot_max_age` reads the same shape. A config package that had to import the checker to validate one key would pull the whole evaluation tree behind a leaf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.