goexpect
goexpect copied to clipboard
How to check if the match succeeded?
Hi,
I'm fairly new to go and I'm having a hard time following the source. How can I determine if the regex match of the "Expect" function succeeded?
Thanks, -G
use Verbose Option like below:
e, _, err := expect.Spawn("your command", -1, expect.Verbose(true))