fixed the go wrapper code further
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-01 01:42:47 +09:00
parent 3b9b02de83
commit 85a2152be4
5 changed files with 61 additions and 21 deletions

View File

@ -126,14 +126,14 @@ func main() {
goto oops
}
err = x.AttachIO(rfh, sfh, pfh)
err = x.AttachIO(&rfh, &sfh, &pfh)
if err != nil {
fmt.Printf("Error - %s", err.Error())
}
x.FeedString(`(printf ">>>>>>>>> [%d]\n" (+ 30 455))
x.FeedString([]rune(`(printf ">>>>>>>>> [%d]\n" (+ 30 455))
(printf ">>>>>>>>> [%d]\n" (+ 11 455))
#include "a.hcl"
(printf ">>>>>>>>> [%d]\n" (+ 20 455))`)
(printf ">>>>>>>>> [%d]\n" (+ 20 455))`))
x.EndFeed()
x.Execute()