upddate caller write method (#5)
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:
2022-03-14 09:58:23 +03:00
parent 012e2ce197
commit 7570ade82a
5 changed files with 92 additions and 70 deletions

View File

@@ -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 {