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