Why do I get this error in GO “panic: runtime error: invalid memory address or nil pointer dereference”
When I run the app, I get the error “stderr: panic: runtime error: invalid memory address or nil pointer dereference”. This error occurs when I use the AutoMigrate function
Cannot use exported method that belongs to the package in Golang
I’ve got a package named services
. This is the structure of the package: