#335 caller skip count.
Some checks failed
lint / lint (pull_request) Has been cancelled
pr / test (pull_request) Has been cancelled

This commit is contained in:
Gorbunov Kirill Andreevich 2024-04-14 17:13:39 +03:00
parent 6baf1f2744
commit 8576a81d54

View File

@ -81,3 +81,9 @@ func WithName(n string) Option {
o.Name = n
}
}
func WithIncCallerSkipCount(n int) Option {
return func(o *Options) {
o.CallerSkipCount += n
}
}