You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
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
Nagaev Boris
unread,
Aug 18, 2024, 5:41:47 PM8/18/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to alex-coder, golang-nuts
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.gus...@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
>