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

Function isCompile

cmd/errtrace/toolexec.go:238–243  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

236}
237
238func isCompile(arg string) bool {
239 if runtime.GOOS == "windows" {
240 arg = strings.TrimSuffix(arg, ".exe")
241 }
242 return strings.HasSuffix(arg, "compile")
243}
244
245func isGoFile(arg string) bool {
246 return strings.HasSuffix(arg, ".go")

Callers 1

toolExecRewriteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected