README: How support C and Python

This commit is contained in:
xushiwei
2024-07-14 10:56:19 +08:00
parent 7390afc5e1
commit 5ba01674fb
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package main
import _ "unsafe" // for go:linkname
//go:linkname Sqrt C.sqrt
func Sqrt(x float64) float64
func main() {
println("sqrt(2) =", Sqrt(2))
}