Andrew.. thank you so much. that works great..

On Thursday, January 5, 2017 at 3:37:51 PM UTC-5, Diddymus wrote:
>
> Maybe https://play.golang.org/p/9EewyQhD3U ?
>
> On Thursday, 5 January 2017 17:06:07 UTC, bsr wrote:
>>
>> Alexander. thank you very much for helping out. 
>> your program does output my desired string, but value is read from 
>> parsing struct comment and not sure how to get the same effect of multi 
>> line string `hello ... \n world`
>> In other word, my input is "hello ... \n world" and not sure how to 
>> convert to support multi line string like `hello ... \n world`
>> thanks in advance,
>> bsr.
>>
>>
>>
>> On Thursday, January 5, 2017 at 11:52:39 AM UTC-5, Alexander Kapshuk 
>> wrote:
>>>
>>> On Thu, Jan 5, 2017 at 6:45 PM, bsr <bsr...@gmail.com> wrote: 
>>> > Please see the example https://play.golang.org/p/SeG7oO5Us0 
>>> > 
>>> > I am doing some javascript codegen and I want my values single quoted. 
>>> so, 
>>> > in the above example, I want the output to be 
>>> > 
>>> > 
>>> > { v: 'hello ... \n world'} 
>>> > 
>>> > 
>>> > instead of 
>>> > 
>>> > { v: '"hello ... \n world"'}  or { v: "hello ... \n world"} 
>>> > 
>>> > how can I do that? 
>>> > 
>>> > thanks, 
>>> > bsr. 
>>> > 
>>> > -- 
>>> > 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...@googlegroups.com. 
>>> > For more options, visit https://groups.google.com/d/optout. 
>>>
>>> https://play.golang.org/p/GEQpdi6C6s 
>>>
>>

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