Files
archie/internal/plugin/pluginextract/github_com-samcharles93-archie-core-internal-plugin.go
T

48 lines
1.4 KiB
Go

// Code generated by 'yaegi extract github.com/samcharles93/archie-core/internal/plugin'. DO NOT EDIT.
package pluginextract
import (
"reflect"
"github.com/samcharles93/archie-core/internal/plugin"
)
func init() {
Symbols["github.com/samcharles93/archie-core/internal/plugin/plugin"] = map[string]reflect.Value{
// function, constant and variable definitions
"LoadDir": reflect.ValueOf(plugin.LoadDir),
// type definitions
"Plugin": reflect.ValueOf((*plugin.Plugin)(nil)),
"Registry": reflect.ValueOf((*plugin.Registry)(nil)),
// interface wrapper definitions
"_Plugin": reflect.ValueOf((*_github_com_samcharles93_archie_core_internal_plugin_Plugin)(nil)),
}
}
// _github_com_samcharles93_archie_core_internal_plugin_Plugin is an interface wrapper for Plugin type
// generated by 'yaegi extract'. IValue is required by Yaegi's interface bridging --
// it holds the underlying concrete value for the interpreter's type system even
// though Name()/Version() delegate to the function fields. Do not remove.
type _github_com_samcharles93_archie_core_internal_plugin_Plugin struct {
IValue interface{}
WName func() string
WVersion func() string
}
func (W _github_com_samcharles93_archie_core_internal_plugin_Plugin) Name() string {
if W.WName == nil {
return ""
}
return W.WName()
}
func (W _github_com_samcharles93_archie_core_internal_plugin_Plugin) Version() string {
if W.WVersion == nil {
return ""
}
return W.WVersion()
}