Files
query-orchestration/vendor/github.com/gen2brain/go-fitz/purego_windows.go
T
Michael McGuinness fee71e7740 Merged in feature/postprocessing (pull request #114)
Feature/postprocessing

* tests

* passtest

* fixshorttests

* mosttests

* improvingbasedockerfile

* testspeeds

* testing

* host

* canparallel

* clean

* passfullsuite

* singlepagemax

* test

* findfeatures

* findstables

* tbls

* tablestoo

* tablestoo

* lateraltests

* tableloc

* cleanup

* inlinetable

* childids

* cleanup

* tests
2025-04-22 14:40:16 +00:00

23 lines
355 B
Go

//go:build (!cgo || nocgo) && windows
package fitz
import (
"fmt"
"syscall"
)
const (
libname = "libmupdf.dll"
)
// loadLibrary loads the dll and panics on error.
func loadLibrary() uintptr {
handle, err := syscall.LoadLibrary(libname)
if err != nil {
panic(fmt.Errorf("cannot load library %s: %w", libname, err))
}
return uintptr(handle)
}