0

Go 'package' does not name a type

I’m learning the Golang and anytime click on the ‘Try it yourself’ button and then ‘run’. I receive the error; ./Playground/file0.cpp:1:1: error: 'package' main does not name a type. Please help 🙏

21st Nov 2021, 6:42 PM
Ahmad Sani Barde
Ahmad Sani Barde - avatar
3 odpowiedzi
+ 1
The error shows you are in C++ playground instead of Go. Write to Sololearn an email, is this a bug or a wrong setting. Deleting the cache on your phone and reinstall the app may help.
3rd Feb 2022, 8:49 AM
Gabriel
Gabriel - avatar
0
I think you are changing something.
21st Nov 2021, 7:13 PM
A͢J
A͢J - avatar
0
no. i simply Run the code (wothout changing anything) after hitting thr “Try it yourself”
21st Nov 2021, 9:46 PM
Ahmad Sani Barde
Ahmad Sani Barde - avatar