Error Run Code “Go and Build an Application with SQLITE” – Getting Help

Greetings to everyone,
I don’t have much programming experience but now I am trying to learn a programming language well, finally I chose GO. After reading some books and doing some small tests with the code, I followed a more complete tutorial to try to make the first complete program. Unfortunately I got stuck almost immediately because running the first part of the program gives me errors and I couldn’t solve them myself, I ask your help (sorry for the bad english). This is the first piece of code:


package main

import (

func main() {

        menu := wmenu.NewMenu("What would you like to do?")

        menu.Action(func(opts []wmenu.Opt) error { handleFunc(opts); return nil })

        menu.Option("Add a new Person", 0, true, nil)
        menu.Option("Find a Person", 1, false, nil)
        menu.Option("Update a Person's information", 2, false, nil)
        menu.Option("Delete a person by ID", 3, false, nil)
        menuerr := menu.Run()

        if menuerr != nil {


go run main.go
main.go:5:2: cannot find package "" in any of:
	/home/linuxbrew/.linuxbrew/Cellar/go/1.19.2/libexec/src/ (from $GOROOT)
	/home/max/go/src/ (from $GOPATH)

where am i wrong? The package has been installed.
can you help me?

Leave a Comment