packagemainimport("log""github.com/radareorg/r2pipe-go")funcr2cmd(r2p*r2pipe.Pipe,inputstring)(string,error){log.Printf("> %s\n",input)// send a commandbuf1,err:=r2p.Cmd(input)iferr!=nil{log.Println(err)return"",err}// return the result of the command as a stringreturnbuf1,nil}