MCPcopy Create free account
hub / github.com/cucumber/godog / trimGoPath

Function trimGoPath

stacktrace.go:31–36  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

29}
30
31func trimGoPath(file string) string {
32 for _, p := range filepath.SplitList(build.Default.GOPATH) {
33 file = strings.Replace(file, filepath.Join(p, "src")+string(filepath.Separator), "", 1)
34 }
35 return file
36}
37
38// line returns the line number of source code of the
39// function for this Frame's pc.

Callers 1

FormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…