chore: refresh gramsrv public release

This commit is contained in:
A 2026-06-30 14:37:43 +08:00
parent 75cebe8dbf
commit 70b6820474
1274 changed files with 378751 additions and 59919 deletions

View file

@ -0,0 +1,22 @@
package postgres
import (
"fmt"
"path/filepath"
"runtime"
)
func traceCaller(skip int) string {
pc, file, line, ok := runtime.Caller(skip)
if !ok {
return ""
}
name := ""
if fn := runtime.FuncForPC(pc); fn != nil {
name = fn.Name()
}
if name == "" {
return fmt.Sprintf("%s:%d", filepath.ToSlash(file), line)
}
return fmt.Sprintf("%s %s:%d", name, filepath.ToSlash(file), line)
}