We are trying to use a common code as a DLL which is shared by multiple
services. The services need to support multiple platforms like Linux((amd64
and Armv7), Windows and FreeBSD. and we are using the following command to
generate the DLL
 go build -buildmode=c-shared -o calc.so calc.go -- linux
go build -buildmode=c-shared -o calc.dll calc.go -- windows


On Fri, Sep 30, 2022 at 5:52 PM Brian Candler <b.cand...@pobox.com> wrote:

> > is go-plugin supported by Windows?
>
> If you mean go's own plugin system, then no: https://pkg.go.dev/plugin
> (sorry, I should have remembered that)
>
> If you mean the go-plugin library from Hashicorp: I believe it should be
> fine.  It's used by Hashicorp Vault, and Vault supports Windows:
> https://www.vaultproject.io/downloads
>
> So I'd say it's very likely it does.  Besides, it uses gRPC, and that is
> generic across platforms.
>
> > We want to create go dll and tey to access through go code
>
> You haven't said *why* you want to do this.  There may be a better
> solution to what you're trying to achieve.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/pk6vPUmx6lY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/d46d6b49-ffe7-4262-8df7-3d4a13c7a448n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/d46d6b49-ffe7-4262-8df7-3d4a13c7a448n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAHV0BZsvtBRFYynmios45NHMjME2%3DdTTNg6wGRGrk5nt-qRiKQ%40mail.gmail.com.

Reply via email to