Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileline string too long #1

Open
kmx2 opened this issue May 29, 2022 · 0 comments
Open

fileline string too long #1

kmx2 opened this issue May 29, 2022 · 0 comments

Comments

@kmx2
Copy link

kmx2 commented May 29, 2022

fileline string is too long. ,may be choice that only file base display
path.Base(file) in printfileline()

func printFileline(c int) string {
c += 3
_, file, line, ok := runtime.Caller(c)
if !ok {
file = "???"
line = 0
}
return fmt.Sprintf("%s:%d", file, line) => path.Base(file)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant