This warning pops up in VS code;
main redeclared in this block
previous declaration at
I have my go practice files in one directory and each file has a func main() block.
Is anyone familiar with the warning? if so how may I resolve.
This warning pops up in VS code;
main redeclared in this block
previous declaration at
I have my go practice files in one directory and each file has a func main() block.
Is anyone familiar with the warning? if so how may I resolve.
there can be only one main function in a package.
Good to see, you solved your problem. Please, mark the question as answered.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.