suyashkumar / dicom

⚡High Performance DICOM Medical Image Parser in Go.
MIT License
945 stars 138 forks source link

Log and return to ensure defers are still called in example dicomutil. #278

Closed suyashkumar closed 1 year ago

suyashkumar commented 1 year ago

Where appropriate, this calls log.Infof along with a return instead of log.Fatalf to ensure defered functions are actually run in those exit scenarios.

Looking at dicomutil, it could probably use some improvements and a refactor as well in general as an example program.