WithLeeway returns the ParserOption for specifying the leeway window.
(leeway time.Duration)
| 34 | |
| 35 | // WithLeeway returns the ParserOption for specifying the leeway window. |
| 36 | func WithLeeway(leeway time.Duration) ParserOption { |
| 37 | return func(p *Parser) { |
| 38 | p.validator.leeway = leeway |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // WithTimeFunc returns the ParserOption for specifying the time func. The |
| 43 | // primary use-case for this is testing. If you are looking for a way to account |
no outgoing calls