func SetUsesCgo(conf *types.Config) bool { … } // ReadGo116ErrorData extracts additional information from types.Error values // generated by Go version 1.16 and later: the error code, start position, and // end position. If all positions are valid, start <= err.Pos <= end. // // If the data could not be read, the final result parameter will be false. func ReadGo116ErrorData(err types.Error) (code ErrorCode, start, end token.Pos, ok bool) { … }