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

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error