My reply was to Salih but somehow my reply ended up appearing first. According to the purego docs you don't need a compiler, essentially it provides a means of opening a dll/so and registering and calling functions within the dll/so.
On Tuesday, November 21, 2023 at 12:58:20 PM UTC Tamás Gulácsi wrote: > Which is what? > Please share with the golang-nuts list if you've found a solution! > > Mark a következőt írta (2023. november 21., kedd, 11:54:11 UTC+1): > >> Thank you, that looks just like what I want. >> >> On Tuesday, November 21, 2023 at 10:21:14 AM UTC Mark wrote: >> >>> I would like to be able to access a dynamic C library (and ideally C++), >>> i.e., `.so` or `.dll` _without_ using cgo, i.e., without needing a compiler >>> on the target platform. >>> Python provides a `ctypes` module with this facility. Is there an >>> equivalent for Go? >>> >> -- 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/94a176f0-a076-4140-8179-5813ef061249n%40googlegroups.com.