Syntax error: unexpected XYZ, expecting (

I cannot figure out what causes this fault (newbie):

./prog.go:43:6: syntax error: unexpected chkformat, expecting (

and 7 other similar error messages.

Any hint?


There is some } missing in Checkmail.


Yes! One closing bracket did it:

Thank you!

1 Like

The chk-functions could really return a bool instead of no or yes

1 Like

Normally I do this, but while testing… :wink: But thanks for the tip.


Error Resolved for your concern but there are many other multiple error…

1 Like

Yes, but they did not appear until the bracket was added. So I enclosed the “final” code in my previous answer:

Do you find any error in this code?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.