You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Create a GOOS conditional compilation for current platform (say mymodule_linux.go)
package test
var string v = "test"
Create a GOOS conditional compilation for a separate platform (say mymodule_darwin.go)
package test
var string v = "test"
VSCode-go treats both files as actively compile-able and, if code is repeated (say a var in the package scope) in both files, VSCode-go lists them as "redeclared" despite only one of them being compile-able on the current platform.
The text was updated successfully, but these errors were encountered:
This seems related to #1848.
For reference : https://blog.ralch.com/tutorial/golang-conditional-compilation/
Steps to Reproduce:
mymodule.go
mymodule_linux.go
)mymodule_darwin.go
)VSCode-go treats both files as actively compile-able and, if code is repeated (say a var in the package scope) in both files, VSCode-go lists them as "redeclared" despite only one of them being compile-able on the current platform.
The text was updated successfully, but these errors were encountered: