I have an example that performs some timing and output the result at the end. Since the result will never be the same, is there a way to use regular expression or something similar in the Output comment?
Something like below:
...
// Output:
// Time: \d*\(s\)
...
Thanks
Can we use regular expression in Golang testable example Output comment?
No.
This must match literally.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments