Cgo enables us to call C functions from Go programs, and we can run C functions from command line.
Are we able to call Go functions directly from command line?
For example if I have a function in Go:
func add(a, b int) int {
return a + b
}
Can I somehow invoke this from bash?
Thanks!