'GoLand allows multiple main functions in the same package?

When using GoLand software GoLand allows multiple main functions in the same package



Solution 1:[1]

You can declare multiple main() functions in the same package in GoLand.

However, you have to specify a file to run by the IDE and change Run | Edit Configurations | Run kind to File. It is identical to go build main.go command.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 s0xzwasd