On Fri, Jul 1, 2016 at 4:36 PM, Tong Sun wrote:

>
> On Fri, Jul 1, 2016 at 4:13 PM, mhhcbon wrote:
>
>> I honestly admit i have no real understanding of what i m doing ...
>>
>
>
>> I can only figure out it works on the other end :o
>>
>> But its way more readable, to me, src -> transform -> transform -> sink
>>
>
> Then maybe check this one out?
>
> https://godoc.org/github.com/go-shaper/shaper#example-package--Output
>
> You can do
>
> shaper.NewFilter().ApplyToUpper().ApplyToLower().ApplyReplace("test",
> "biscuit", -1).ApplyRegexpReplaceAll("(?i)ht(ml)", "X$1").ApplyTrim()...
>
> and on and on, and you can build you own transform on top of that as well.
>

Adding Unix2Dos() and Dos2Unix() to it is real easy, and I'd happy to take
the patch. Let me know if you want but unable to do it.

-- 
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.

Reply via email to