Home > Mobile >  Error during building goLang program using Fyne GUI
Error during building goLang program using Fyne GUI

Time:10-07

"package command-line-arguments is not a main package"

This error showing when trying to build my go project using fyne gui

CodePudding user response:

The package “main” tells the Go compiler that the package should compile as an executable program instead of a shared library. The main function in the package “main” will be the entry point of our executable program. When you build shared libraries, you will not have any main package and main function in the package.

Use package main in place of the package you have created

CodePudding user response:

Make your package a main package and then your program will get executed.

  • Related