Computing

(golang) multiple main functions cannot be exist in main package

Donghoon 2021. 6. 3. 02:54

 

go: cannot find main module, but found ....

One more go source file was added, but main() function cannot be multiple in different files/same directory (package)

 

 

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

 

During Mac OS upgrade and xcode change, some soft links might not be updated to new xcode, so additional go utility installation showed some error. This issue can be resolved by below.

xcode-select --install