getGoDirective Extract the go directive from the go.mod file.
(goModData []byte)
| 93 | |
| 94 | // getGoDirective Extract the go directive from the go.mod file. |
| 95 | func getGoDirective(goModData []byte) string { |
| 96 | // https://go.dev/ref/mod#go-mod-file-go |
| 97 | match := goDirectiveReg.FindStringSubmatch(string(goModData)) |
| 98 | if len(match) > 1 { |
| 99 | return match[1] |
| 100 | } |
| 101 | return "" |
| 102 | } |
no outgoing calls
searching dependent graphs…