New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cobra init on new empty project, got undeclared name: cmd on gotype #432
Comments
Hello! |
@BoGeM Sorry it takes me long time to reply. I recreate it, on the go src directory I create a new folder then inside there, just execute I include a print screen of it. And the content of the main.go is this.
|
And could you please write a content of samp\cmd\root.go? |
I understood, what's the problem. |
No problem! |
Yes i did, and execute successfully. but my editor is keep complaining about it. Thanks |
I became the same issue with |
hmm that was odd. I also do |
Hello good day,
I just want to ask for help, When I do
cobra init
to start a new project, it will create the but opining the main.go or executinggotype main.go
I will got this.main.go:17:8: could not import sample_proj/cmd (can't find import: sample_proj/cmd)
main.go:20:2: undeclared name: cmd
Thanks
The text was updated successfully, but these errors were encountered: