after hours of wrestling with CGO i managed to compile my code , now binary does not work
The linker will typically not look in the current directory for shared libraries. It needs to be installed in the system library paths, or you need to play with LD_LIBRARY_PATH, or something similar.
(This isn’t Go specific btw.)
