MCPcopy Create free account
hub / github.com/bracesdev/errtrace / isStdLib

Function isStdLib

cmd/errtrace/toolexec.go:311–313  ·  view source on GitHub ↗

isStdLib checks if the current execution is for stdlib.

(args []string)

Source from the content-addressed store, hash-verified

309
310// isStdLib checks if the current execution is for stdlib.
311func isStdLib(args []string) bool {
312 return slices.Contains(args, "-std")
313}
314
315func packageSelectorMatch(selector, importPath string) bool {
316 if pkgPrefix, ok := strings.CutSuffix(selector, "..."); ok {

Callers 1

toolExecRewriteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected