readFromOrNull

Tries to read Go build information from a file, returning null if any error occurs. This is a convenience method that catches all exceptions.

Return

Go build information object, or null if not found or on error

Parameters

file

The opened file