MCPcopy Index your code
hub / github.com/maruel/panicparse / IsUsingModules

Function IsUsingModules

internal/internaltest/internaltest.go:118–121  ·  view source on GitHub ↗

IsUsingModules returns if go modules are enabled. It reads the current value of GO111MODULES.

()

Source from the content-addressed store, hash-verified

116//
117// It reads the current value of GO111MODULES.
118func IsUsingModules() bool {
119 s := os.Getenv("GO111MODULE")
120 return s != "off"
121}
122
123//
124

Callers 4

testPanicMismatchedFunction · 0.92
testPanicUTF8Function · 0.92
buildFunction · 0.85

Calls

no outgoing calls

Tested by 3

testPanicMismatchedFunction · 0.74
testPanicUTF8Function · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…