[delayed]
Since you mention Go, it does offer precisely the feature you describe in the form of build constraints. A file starting with //go:build go1.18 tells the toolchain to use Go 1.18. A slightly different syntax was used…
[delayed]
Since you mention Go, it does offer precisely the feature you describe in the form of build constraints. A file starting with //go:build go1.18 tells the toolchain to use Go 1.18. A slightly different syntax was used…