Re: [go-nuts] regarding os package & env variable setting

2019-03-05 Thread Durga Someswararao G
Hi, Thanks for your reply. Now I got the clear idea. On Tue, Mar 5, 2019 at 10:44 PM Marcin Romaszewicz wrote: > os.Setenv only changes the environment variables in your process and in > any future child processes. It's not actually possible to change the > environment of your parent process

Re: [go-nuts] I have an issue in go after make

2019-03-08 Thread Durga Someswararao G
That you have to run from sudo level ( I mean from root level). First do like this For ubuntu : sudo -s For other linux distributions like centos,suse : su Then it will ask for password. Then run your make file/go build. It looks like your make file is trying to use some config files that's why

Re: [go-nuts] Regarding Invalid UTF-8 characters

2019-01-25 Thread Durga Someswararao G
Thanks. On Fri, Jan 25, 2019 at 2:54 PM Wagner Riffel wrote: > there is nothing to do with special characters in the example you > shown, your xml data is just invalid xml, you're missing root element, > just add it and it should work: > CPUêÿ > btw here is a short version of your program on

Re: [go-nuts] Regarding strings replace functions issues

2019-08-28 Thread Durga Someswararao G
ould be that your input has not the newline byte, but > instead the escaped sequence '\' and 'n'? Then you would need > to use the escape sequence for the slash in the search string: > > https://play.golang.org/p/O-c76dM_E5B > > > On 27.08.19 20:06, Durga Someswararao G wrote:

Re: [go-nuts] Regarding strings replace functions issues

2019-08-28 Thread Durga Someswararao G
, or call a method > that does it before sending it via tcp? That would explain that all the > "\n" become "\\n". > > Le mer. 28 août 2019 à 12:17, Durga Someswararao G < > durgasomeswararao...@gmail.com> a écrit : > >> Hi Tamás, >> &

Re: [go-nuts] Regarding strings replace functions issues

2019-08-28 Thread Durga Someswararao G
Thanks Michel. On Wed, Aug 28, 2019 at 5:53 PM Michel Levieux wrote: > https://golang.org/ref/spec#String_literals > > Here you go. > > > Le mer. 28 août 2019 à 14:05, Durga Someswararao G < > durgasomeswararao...@gmail.com> a écrit : > >> Hi Martin, >&

Re: [go-nuts] Regarding strings replace functions issues

2019-08-28 Thread Durga Someswararao G
Hi Tamás, But even in other side also I am using golang to convert string into bytes. Using tcp connection with net package I am getting data from other process. FYI When I try to replace string with \\n it was working fine. Like below: processoutput = strings.Replace("String 1\n String

Re: [go-nuts] Regarding strings replace functions issues

2019-08-28 Thread Durga Someswararao G
""). Could it > be, that you accidentally used those raw string literals in the producer > code with the newline escape sequence that is not supported? > > > > On 28.08.19 12:32, Durga Someswararao G wrote: > > Hi, > > > > Manually I tried but here my

[go-nuts] Regarding strings replace functions issues

2019-08-27 Thread Durga Someswararao G
Hi, Can anyone help me in this case. I was reading byte data(array of bytes) from another process and converted that data to string. Now I am trying to replace escape sequences \n with strings.Replace function but golang not detecting it. Even I tried with bytes.Replace function but no use.

[go-nuts] regarding regex package

2019-09-14 Thread Durga Someswararao G
or anyway to handle this in golang. Regex Syntax: https://github.com/google/re2/wiki/Syntax Sample Code: https://play.golang.org/p/SwODqNNJtBN Thanks, Durga SomeswaraRao G. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

[go-nuts] Goroutines count and id

2020-06-30 Thread Durga Someswararao G
have free in C? Thanks, Durga SomeswaraRao G. -- 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. To view this

[go-nuts] Reading multi line input from user

2020-06-21 Thread Durga Someswararao G
Hi, I am trying to read multi line user input, which I don't know the count of those lines. Is there any way to do it. Eg: User will give one sample piece of code like below we have to read complete code without skipping content. As it is a piece of code we cannot get number of lines we have