Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82bd1d7

Browse files
committed
Go: Add SupportsWorkspaces function
1 parent 237bf56 commit 82bd1d7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

go/extractor/toolchain/toolchain.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ func parseGoVersion(data string) string {
6666
}
6767
return strings.Fields(lastLine)[2]
6868
}
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

Comments
 (0)