Quiz: Distributing Tool

Test your knowledge about distributing your tool.

1

What does the following code do?

if runtime.GOOS == "darwin" {
	<block>
}
A)

Builds the code only on MacOS machines

B)

Executes <block> only if the program is running on MacOS

C)

Executes <block> if the program was built on MacOS

D)

Executes <block> if user-defined variable GOOS = “darwin”

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.