Why gofmt runs only with Go 1.9 and 1.10

I was exploring snapd repo and found such github workflow. If I’m not mistaken formatting checks runs only with Go 1.9 and 1.10. Is there any explanation why these versions were chosen? I tried to run syntax checks with Go 1.16.3 and there are some errors found. Is it OK?

Yes, that’s some legacy stuff we need to deal with at some point. If you’re concerned about this, you can grab gofmt from 1.10 and set GOFMT=gofmt-1.10 to have the static checks use that binary, or even set SKIP_GOFMT=1 to just skip the check completely.