glean
glean copied to clipboard
Example not working
Dear author,
I just tried playing with the provided example, but unfortunately it doesn't work:
go-plugins-glean/httpserver > go run main.go
2020/01/15 13:35:13 plugin.go:102: ERROR: failed to load FooHandler: plugin.Open("plugins/plugin1/plugin1"): could not find symbol FooHandler: dlsym(0x4d00020, plugin/hot-D21644C3-E9A4-4712-97DC-6D09C79D735B.FooHandler): symbol not found
panic: plugin.Open("plugins/plugin1/plugin1"): could not find symbol FooHandler: dlsym(0x4d00020, plugin/hot-D21644C3-E9A4-4712-97DC-6D09C79D735B.FooHandler): symbol not found
goroutine 1 [running]:
main.main()
/Users/user/dev/go-playground/go-plugins-glean/httpserver/main.go:14 +0x2e5
exit status 2
go-plugins-glean/httpserver >
Of course, both plugins were built before running the main. The project example used can be found here.
Thanks.