mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
19 lines
297 B
Go
19 lines
297 B
Go
// +build !cgo,!noplugin
|
|
// +build linux darwin
|
|
|
|
package loader
|
|
|
|
import (
|
|
"errors"
|
|
|
|
iplugin "github.com/ipfs/go-ipfs/plugin"
|
|
)
|
|
|
|
func init() {
|
|
loadPluginFunc = nocgoLoadPlugin
|
|
}
|
|
|
|
func nocgoLoadPlugin(fi string) ([]iplugin.Plugin, error) {
|
|
return nil, errors.New("not built with cgo support")
|
|
}
|