mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-24 19:27:14 +08:00
19 lines
291 B
Go
19 lines
291 B
Go
//go:build noplugin
|
|
// +build noplugin
|
|
|
|
package loader
|
|
|
|
import (
|
|
"errors"
|
|
|
|
iplugin "github.com/ipfs/kubo/plugin"
|
|
)
|
|
|
|
func init() {
|
|
loadPluginFunc = nopluginLoadPlugin
|
|
}
|
|
|
|
func nopluginLoadPlugin(string) ([]iplugin.Plugin, error) {
|
|
return nil, errors.New("not built with plugin support")
|
|
}
|