show synctax error code.
before
2020/08/09 01:15:13 [gofmtmd] failed to format go source code. Please check syntax : 1:22: expected statement, found 'import' (and 1 more errors)
after
2020/08/09 01:15:39 [gofmtmd] line='funcmain(){}', msg='1:22: expected statement, found 'import' (and 1 more errors)'