Hi!

Regarding 2 yes, conditional compilation is done on file level, via
build tags. There are built-in tags for OS and CPU architectures. You
can read here about it:
https://pkg.go.dev/cmd/go#hdr-Build_constraints

Boris

On Sun, Aug 18, 2024 at 4:06 PM alex-coder <a.gusse...@gmail.com> wrote:
>
> Hi All ! Please advice me : 1. Where to see how Go calls or compiles (detects 
> ) the corresponding runtime (windows, linux etc) in Go code. 2. Where to read 
> about and if there is a conditional compilation in Go. Thanks to everyone
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/a58b3d1d-5d67-476f-b8c9-9456d77dc326n%40googlegroups.com.



-- 
Best regards,
Boris Nagaev

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAFC_Vt6TGH9Xy9%3DkFiVoCC7t2ckgqGMbD_HO1NkH%2BJV8KDJLMA%40mail.gmail.com.

Reply via email to