#335 caller skip count.
This commit is contained in:
parent
6baf1f2744
commit
8576a81d54
@ -81,3 +81,9 @@ func WithName(n string) Option {
|
|||||||
o.Name = n
|
o.Name = n
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func WithIncCallerSkipCount(n int) Option {
|
||||||
|
return func(o *Options) {
|
||||||
|
o.CallerSkipCount += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user