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?

2 Likes

There is some } missing in Checkmail.

3 Likes

Yes! One closing bracket did it: Go Playground - The Go Programming Language

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.

2 Likes

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

https://play.golang.org/p/EiUHQ_XESxT

1 Like

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

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.