erigon-pulse/turbo/silkworm/load.go

20 lines
463 B
Go
Raw Normal View History

//go:build !linux
// +build !linux
package silkworm
import (
"errors"
"unsafe"
)
func OpenLibrary(dllPath string) (unsafe.Pointer, error) {
// See https://github.com/golang/go/issues/28024
return nil, errors.New("Silkworm is only supported on Linux")
}
func LoadFunction(dllHandle unsafe.Pointer, funcName string) (unsafe.Pointer, error) {
// See https://github.com/golang/go/issues/28024
return nil, errors.New("Silkworm is only supported on Linux")
}