Really strange issue, have been scratching my head for hours now. 
Consider 
https://github.com/evcc-io/evcc/blob/0b8105d36d245a2169961c48e50fbb830fd38147/charger/ocpp_decorators.go.
 
Absolutely fine imho. Yet gofmt fails, but only on 
CI: https://github.com/evcc-io/evcc/actions/runs/3340736849/jobs/5531173685 
with

gofmt -w -l $(find . -name '*.go') 
Error: ./charger/ocpp_decorators.go:9:186: expected declaration, found ')'

I can't find any reason why this should fail and it doesn't do so locally.

Any idea would be welcome as that CR has been stuck due to gofmt.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8a2e6351-b88a-46ff-917b-af9110aa8aaan%40googlegroups.com.

Reply via email to