Golang calling C from golang



Think the code is pretty straight forward. Have your source code in the same folder as shown below and run "go run main.go". That's all you need to do to get your golang code running.

The function call is case sensitive.





hello.c




sum.c

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type