Need help

61 views
Skip to first unread message

Shaown Abir

unread,
Feb 2, 2022, 8:15:02 AM2/2/22
to golang-nuts
Capture.PNGCapture1.PNG

I am new to golang. Here is the problem in my code. I don't know how to solve it. I thought my code is ok but it shows an error. Can anybody tell me the solution of my code? Thank you.

krypticallusion

unread,
Feb 2, 2022, 8:18:45 AM2/2/22
to golang-nuts
Have you tried running the program itself?

Jan Mercl

unread,
Feb 2, 2022, 8:26:05 AM2/2/22
to Shaown Abir, golang-nuts
On Wed, Feb 2, 2022 at 2:14 PM Shaown Abir <shaown....@gmail.com> wrote:

> I am new to golang.

The name of the programming language is Go.

> Here is the problem in my code. I don't know how to solve it. I thought my code is ok but it shows an error. Can anybody tell me the solution of my code? Thank you.

Please post code as text or as a link to https://go.dev/play/, do not
post pictures of code. It makes helping you much more difficult as
people cannot copy the code to try it. Also dark scheme is good for
you, if you prefer it, but some people cannot read it comfortably.
Dark letters on a light background and a lot of contrast is the best
for all.

You haven't said what error is shown, forcing people to guess it. Not
helpful for getting answers.

Last but not least, the example should be a complete, self contained
compilable code. It's ok if it compiles with errors, that's actually
the best thing for others helping you to get rid of them.

-j

yamil...@gmail.com

unread,
Feb 2, 2022, 8:26:53 AM2/2/22
to golang-nuts
Hi,
What's the error ?
I tested your code in PlayGround and it worked fine...
Reply all
Reply to author
Forward
0 new messages