github.phpd.cn/thought-machine/please@v12.2.0+incompatible/test/go_rules/asm_binary/main.go (about) 1 // Package asm implements a simple binary using Go assembly. 2 package main 3 4 import ( 5 "fmt" 6 "os" 7 "strconv" 8 ) 9 10 // add is the forward declaration of the assembly implementation. 11 func add(x, y int64) int64 12 13 func main() { 14 x, _ := strconv.ParseInt(os.Args[1], 10, 64) 15 y, _ := strconv.ParseInt(os.Args[2], 10, 64) 16 fmt.Printf("%d\n", add(x, y)) 17 }