go-libwebp

Experimental translation from libwebp to Go source.
Log | Files | Refs | README | LICENSE

dlopen_windows.go (219B)


      1 //go:build windows
      2 
      3 package webp
      4 
      5 import "golang.org/x/sys/windows"
      6 
      7 func dlopen(name string) (uintptr, error) {
      8 	dll, err := windows.LoadDLL(name)
      9 	if err != nil {
     10 		return 0, err
     11 	}
     12 	return uintptr(dll.Handle), nil
     13 }