However goeval doesn't yet have direct support for file input (only stdin), so shell tricks are needed.
So far the way is:
run: | go run github.com/dolmen-go/goeval@v1 - <<'EOF' fmt.Println("Hello") EOF
Disclaimer: I'm the author of goeval.
[1] https://github.com/dolmen-go/goeval
go run github.com/dolmen-go/goeval@v1 - < file.go
GitHub requreq {0} to be present on the shell line.
If you're going to plug your toy in this context, showing something more relevant than "print hello" would have saved me the click
However goeval doesn't yet have direct support for file input (only stdin), so shell tricks are needed.
So far the way is:
but this requires a bit of boilerplate.Disclaimer: I'm the author of goeval.
[1] https://github.com/dolmen-go/goeval