Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SupportsWorkspaces
1 parent 237bf56 commit 82bd1d7Copy full SHA for 82bd1d7
1 file changed
go/extractor/toolchain/toolchain.go
@@ -66,3 +66,8 @@ func parseGoVersion(data string) string {
66
}
67
return strings.Fields(lastLine)[2]
68
69
+
70
+// Returns a value indicating whether the system Go toolchain supports workspaces.
71
+func SupportsWorkspaces() bool {
72
+ return semver.Compare(GetEnvGoSemVer(), "v1.18.0") >= 0
73
+}
0 commit comments