Skip to content

Example not working #2

Description

@dxps

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions