MCPcopy
hub / github.com/apache/devlake / init

Function init

backend/core/migration/linter/main.go:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35var moduleName = ""
36
37func init() {
38 // prepare the module name
39 line := firstLineFromFile("go.mod")
40 moduleName = strings.Split(line, " ")[1]
41}
42
43func firstLineFromFile(path string) string {
44 inFile, err := os.Open(path)

Callers

nothing calls this directly

Calls 1

firstLineFromFileFunction · 0.85

Tested by

no test coverage detected