upddate caller write method (#5)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: andrey1s <andrey@4devs.pro> Reviewed-on: #5 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
This commit was merged in pull request #5.
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func Caller(depth int, full bool) string {
|
||||
const offset = 4
|
||||
const offset = 3
|
||||
_, file, line, has := runtime.Caller(depth + offset)
|
||||
|
||||
if !has {
|
||||
|
||||
Reference in New Issue
Block a user