It's nice to see this, but it would be nicer still if it was amenable to representations that weren't just a slice of bytes (for example disk or network backed files, or just something which made insertions not O(n)). It seems like it might be possible to use Regexp.FindReader* to avoid duplicating the stdlib's regexp package.
On 8 August 2017 at 11:10, <as.u...@gmail.com> wrote: > I'm sure this has been done already, but I thought I'd share my > implementation of this here for anyone interested in using structural > regular expressions in Go. It doesn't cover 100% of what Edit does in Acme, > but its close enough that I can use the example program as a substitute to > sed on Windows. > > github.com/as/edit > > Reference > > http://doc.cat-v.org/bell_labs/sam_lang_tutorial/ > > -- > 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 golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.