Using .so file in golang

hello i have an compiled .so file at /usr/share/colours.so
can i use this file in my golang code ? how can i use this? do i need to use import “/usr/share/colours.so” ? or anyother way?
pls help if u know

You need CGO enabled to compile shared libraries on linux then call it from your go code. Here is what i found which might help you

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.