wrap goversion check in func for ast building

I realize this is minutiae, but PR'ing for the greater good I guess. Doing testing of a lot of go packages and this came up in the log and was an easy fix.