github.com/astrogo/cfitsio@v0.1.0/version.go (about)

     1  package cfitsio
     2  
     3  // #include "go-cfitsio.h"
     4  import "C"
     5  
     6  // Version returns the revision number of the CFITSIO library. The revision number will be incremented with each new release of CFITSIO.
     7  func Version() float32 {
     8  	v := C.float(0)
     9  	C.ffvers(&v)
    10  	return float32(v)
    11  }
    12  
    13  // EOF