NagOptions
NagOptions configures a nag.
NagOptions configures a nag.
type NagOptions struct {
ID string
Every int
OrEvery time.Duration
}Fields#
ID#
ID stringID names the nag; state is kept per ID and target set.
Every#
Every intEvery makes the nag due once it has been counted this many runs (one run per process) since it was last shown.
OrEvery#
OrEvery time.DurationOrEvery makes the nag due once this much time has passed since it was last shown, regardless of runs. Zero disables the clause. See ParseISODuration for ISO-8601 input.