You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Rewind is used to rewind the reader to before an argument was read. This is useful for some argument verification situations.
// Note that if you want to rewind multiple arguments, you need to run it on every argument you parsed AFTER the one you wish to rewind in order of last to first.
func (a *Argument) Rewind() (err error) {
if a.argId != a.p.argId {
return errors.New("please rewind the arguments in order of last fetched first")