Hi!
On Mon, Apr 09, 2018 at 04:09:55AM -0700, Tamás Gulácsi wrote:
> A small hack can help: add someting at the beginning of the Reader (with
> io.MultiReader) that won't allow the match on the beginning.
Try to add "\n" at beginning of the stream and then start regexp with \n
instead of ^. If regexp must also match with \n at end, to make sure it
read full lines - just add .UnreadRune() or seek -1 more byte after match
to "unread" last \n.
--
WBR, Alex.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.