1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // A type can be passed to a plugin and converted to interface
6 // there. So its methods need to be live.
13 "testplugin/method2/p"
18 type I interface{ M() }
21 pl, err := plugin.Open("method2.so")
26 f, err := pl.Lookup("F")
31 f.(func(p.T) interface{})(t).(I).M()