mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 02:24:29 +00:00
20 lines
463 B
Go
20 lines
463 B
Go
|
//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")
|
||
|
}
|