Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: failed to set variable at build time if variable value is result from method call #26042
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Every global variable has memory allocated in the data section of the program. The contents of the data section are set to the initial value of the variable. For a variable initialized with a function call, the variable's value is set by an initialization function. The
The implementation of