code: func CloseFile(err error, f io.Closer) error {
  	if lerr := f.Close(); lerr != nil && err == nil {
  		err = lerr
  	}
  	return err
  }
docs: // CloseFile closes the given file and report the possible error only
  // if the given error `err` is not already set.