[go-nuts] Goroutines count and id

2020-06-30 Thread Durga Someswararao G
Hi,
Can some one help for below queries

Is it possible to get goroutine id when we creted?
Is it possible to get goroutines count while we creating?
Is it possible to terminate a goroutine based on ID like if any goroutine 
has infinite loops?
Is it possible to clean up memory of variable like we 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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a4b9ed05-506c-405d-8f6f-2a30a480333do%40googlegroups.com.


[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 to read.

import java.io.*;

public class SquareNum {

   public static void main(String args[]) throws IOException
   {
  System.out.println("This is a small Java Program!");
   }
}

Thanks

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/05b21718-f600-44a8-a46c-d22561ed9776o%40googlegroups.com.


[go-nuts] regarding regex package

2019-09-14 Thread Durga Someswararao G
Hi,

I tried to execute one regular expression with regex package. When I try to 
compile I am getting unsupported Perl syntax. After reading regex syntax 
conclusion is golang not supporting some combination regex patterns like 
positive lookahed,negative lookahed etc. Is there any alternative 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 unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6d9e5da0-9b9c-4712-abb6-5eb7cc7aa0a2%40googlegroups.com.


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,
>> Thanks for your help.
>>
>> From first point as you said is right in my case \\n is as it is
>> considering \n as string thanks for this.
>>  Second point you mentioned about back-ticks where can I get this
>> information? Can you please share any reference links to get more knowledge
>> about this.
>>
>> Thanks.
>>
>>
>> On Wed, Aug 28, 2019 at 4:45 PM Martin Schnabel  wrote:
>>
>>> Somewhere in your code producing the text you seem to escape the
>>> the escape sequence for the newline character.
>>>
>>> "\n" is a string with the escape sequence for the newline character '\n'
>>> "\\n" is a string with escaped slash and a lowercase n '\\' 'n'
>>>
>>> Again, without seeing the code we can only guess. Here is another one:
>>> Go has raw string literals using back-ticks `like this` those literals
>>> do not use escape sequences (`\n` == "\\n" && `\\` == ""). 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 concern is shall I get the reason, Why
>>> that
>>> > was happening like that?
>>> > I am trying to debug strings.Replace is not working.
>>> >
>>> > Thanks.
>>> >
>>> > On Wed, Aug 28, 2019 at 3:52 PM Michel Levieux <
>>> m.levi...@capitaldata.fr
>>> > <mailto:m.levi...@capitaldata.fr>> wrote:
>>> >
>>> > Hi,
>>> >
>>> > Isn't it that from the other side, you escape the string, 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
>>> > >> > <mailto:durgasomeswararao...@gmail.com>> a écrit :
>>> >
>>> > 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
>>> > 2","\\n","'@_@_@'",-1)
>>> >
>>> > On Wed, Aug 28, 2019 at 3:26 PM Tamás Gulácsi
>>> > mailto:tgulacs...@gmail.com>> wrote:
>>> >
>>> > That means that other process speaks some other encoding,
>>> > not utf-8, which the strings package waits.
>>> > Use golang.org/x/text/encoding
>>> > <http://golang.org/x/text/encoding> to convert to utf-8.
>>> >
>>> > --
>>> > 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
>>> > <mailto:golang-nuts%2bunsubscr...@googlegroups.com>.
>>> > To view this discussion on the web visit
>>> >
>>> https://groups.google.com/d/msgid/golang-nuts/865188f0-405e-45ee-82b9-7f6d24f1d49f%40googlegroups.com
>>> .
>>> >
>>> > --
>>> > 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
>>> > <mailto:golang-nuts+unsubscr...@googlegroups.com>.
>>>

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

2019-08-28 Thread Durga Someswararao G
Hi Martin,
Thanks for your help.

>From first point as you said is right in my case \\n is as it is
considering \n as string thanks for this.
 Second point you mentioned about back-ticks where can I get this
information? Can you please share any reference links to get more knowledge
about this.

Thanks.


On Wed, Aug 28, 2019 at 4:45 PM Martin Schnabel  wrote:

> Somewhere in your code producing the text you seem to escape the
> the escape sequence for the newline character.
>
> "\n" is a string with the escape sequence for the newline character '\n'
> "\\n" is a string with escaped slash and a lowercase n '\\' 'n'
>
> Again, without seeing the code we can only guess. Here is another one:
> Go has raw string literals using back-ticks `like this` those literals
> do not use escape sequences (`\n` == "\\n" && `\\` == ""). 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 concern is shall I get the reason, Why that
> > was happening like that?
> > I am trying to debug strings.Replace is not working.
> >
> > Thanks.
> >
> > On Wed, Aug 28, 2019 at 3:52 PM Michel Levieux  > <mailto:m.levi...@capitaldata.fr>> wrote:
> >
> > Hi,
> >
> > Isn't it that from the other side, you escape the string, 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
> >  > <mailto:durgasomeswararao...@gmail.com>> a écrit :
> >
> > 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
> > 2","\\n","'@_@_@'",-1)
> >
> > On Wed, Aug 28, 2019 at 3:26 PM Tamás Gulácsi
> > mailto:tgulacs...@gmail.com>> wrote:
> >
> > That means that other process speaks some other encoding,
> > not utf-8, which the strings package waits.
> > Use golang.org/x/text/encoding
> > <http://golang.org/x/text/encoding> to convert to utf-8.
> >
> > --
> > 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
> > <mailto:golang-nuts%2bunsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/golang-nuts/865188f0-405e-45ee-82b9-7f6d24f1d49f%40googlegroups.com
> .
> >
> > --
> > 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
> > <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGr83pA%2Bvrkg-bYkOs-qjsqxkOgEjoGTmigtJsr0hO287w%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGr83pA%2Bvrkg-bYkOs-qjsqxkOgEjoGTmigtJsr0hO287w%40mail.gmail.com?utm_medium=email_source=footer
> >.
> >
> > --
> > 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
> > <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGrM47a%3Dj6Zbk1caY46FYUG7fXC2J0z0QvoJtSp69b6NCQ%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGrM47a%3Dj6Zbk1caY46FYUG7fXC2J0z0QvoJtSp69b6NCQ%40mail.g

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

2019-08-28 Thread Durga Someswararao G
Hi,

Manually I tried but here my concern is shall I get the reason, Why that
was happening like that?
I am trying to debug strings.Replace is not working.

Thanks.

On Wed, Aug 28, 2019 at 3:52 PM Michel Levieux 
wrote:

> Hi,
>
> Isn't it that from the other side, you escape the string, 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,
>>
>> 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
>> 2","\\n","'@_@_@'",-1)
>>
>> On Wed, Aug 28, 2019 at 3:26 PM Tamás Gulácsi 
>> wrote:
>>
>>> That means that other process speaks some other encoding, not utf-8,
>>> which the strings package waits.
>>> Use golang.org/x/text/encoding to convert to utf-8.
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/golang-nuts/865188f0-405e-45ee-82b9-7f6d24f1d49f%40googlegroups.com
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGr83pA%2Bvrkg-bYkOs-qjsqxkOgEjoGTmigtJsr0hO287w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGr83pA%2Bvrkg-bYkOs-qjsqxkOgEjoGTmigtJsr0hO287w%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGrM47a%3Dj6Zbk1caY46FYUG7fXC2J0z0QvoJtSp69b6NCQ%40mail.gmail.com.


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
2","\\n","'@_@_@'",-1)

On Wed, Aug 28, 2019 at 3:26 PM Tamás Gulácsi  wrote:

> That means that other process speaks some other encoding, not utf-8, which
> the strings package waits.
> Use golang.org/x/text/encoding to convert to utf-8.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/865188f0-405e-45ee-82b9-7f6d24f1d49f%40googlegroups.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGr83pA%2Bvrkg-bYkOs-qjsqxkOgEjoGTmigtJsr0hO287w%40mail.gmail.com.


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

2019-08-28 Thread Durga Someswararao G
Hi,
Here I have added the link for my exact concern. Please consider from byte
conversion to string only. Here getting as expected but while reading from
another process not working with strings package.
https://play.golang.org/p/7YqfuLWQHtT

On Wed, Aug 28, 2019 at 12:04 AM Martin Schnabel  wrote:

> You can use the go playground to share an example. Like this:
>
> https://play.golang.org/p/8RJXT-e91T5
>
> As you can see in that example both functions work as expected.
> We can only guess what the problem might be without a concrete
> example.
>
> One guess would 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:
> > 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.
> >
> > Also observed even strings.Contains function also not detecting \n.
> >
> > Eg:
> >
> > strings.Replace("String1\nString2", "\n", "golang",-1 )
> >
> > Please help to solve this Issue. Can anyone share any issues with
> > strings package while after converting bytes to string.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/80a19b01-6843-0b44-1ace-e7b73a0e62c9%40mb0.org
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Ba9DGpTmLesaMjWPTU2qyJ5mSGe%3D%3DSEA8i%3D78uEy7db7GebHg%40mail.gmail.com.


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

Also observed even strings.Contains function also not detecting \n.

Eg:

strings.Replace("String1\nString2", "\n", "golang",-1 )

Please help to solve this Issue. Can anyone share any issues with strings 
package while after converting bytes to string.


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c3a9e503-e93d-409a-9e6f-a71af29bc8aa%40googlegroups.com.


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 it's asking for authentication.
I hope this helps.

On Fri, Mar 8, 2019 at 11:37 PM Nada Saif  wrote:

> Thank you!
>
> On Fri, 8 Mar 2019 at 19:45, Nick  wrote:
>
>> Great. I don't know much about docker, but it looks like you
>> probably ran something as sudo that you shouldn't have, again.
>>
>> Try running this:
>> $ sudo chown -R nada:nada /home/nada/.docker
>>
>> Hopefully then your docker stuff should be sorted out.
>>
>> Probably worth you reading a bit more about Linux basics, sudo,
>> permissions, stuff like that. Plenty to learn, all useful stuff :)
>>
>> Also, you replied just to me, I'm cc-ing the list again, so the
>> answers are in the list archive in case it helps others.
>>
>> Nick
>>
>> Quoth Nada Saif:
>> > Thank you, now I could build a hello world go program successfully.
>> > I still have an issue with setting up a development environment, I am
>> using
>> > make command.
>> > There is some permission issue, please see:
>> > [image: x.png]
>> >
>> >
>> > What do you suggest?
>> >
>> > On Fri, 8 Mar 2019 at 17:31, Nick  wrote:
>> >
>> > > Quoth Nada Saif:
>> > > > The go command works, but when I try to build any golang code, it
>> gives
>> > > me :
>> > > > [image: go-err.png]
>> > > >
>> > > > I downloaded go1.12 linux/amd64 and extracted it to /usr/local/
>> > > > I also added these to .bashrc
>> > > > export GOPATH = $HOME/go
>> > > > export PATH=$PATH:$GOPATH/bin
>> > > > export also PATH=$PATH:/usr/local/go/bin
>> > >
>> > > Hi Nada, it looks like you messed things up using sudo, running the
>> > > go tool with elevated permissions at some point. You don't need to
>> > > use 'sudo' to run 'go build' in normal use.
>> > >
>> > > You can get rid of the incorrect cache with this command:
>> > > $ sudo rm -rf /home/nada/.cache/go-build
>> > >
>> > > Then you should be able to build your project with a simple:
>> > > $ go build
>> > >
>> > > No sudo needed.
>> > >
>> > > Hope this gets you on your way :)
>> > >
>> > > Nick
>> > >
>>
>>
>> --
> 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.


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 or the OS through this mechanism.
>
> -- Marcin
>
>
> On Tue, Mar 5, 2019 at 6:00 AM  wrote:
>
>> Hi,
>> I am trying to enable tls 1.3 through os.setEnv() method. Is setenv
>> method will change process level or from os level(I mean will it change in
>> device and other running applications)?
>>
>> --
>> 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.


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 playground,
> https://play.golang.org/p/PhKgVXIcWZl
>
> On Fri, Jan 25, 2019 at 6:25 AM  wrote:
> >
> > Hi,
> > How can I handle special characters while using unmarshalling. I am
> getting some special charactes in my xml data (like this eg êÿÿ ) and
> golang throwing xml syntax error invalid UTF-8. Any please suggest how to
> handle this case.
> > I tried to handle this xml decoder like this:
> >
> >
> > // Decoder_p.go
> >
> > package main
> >
> >
> >
> > import (
> >
> > "fmt"
> >
> > "encoding/xml"
> >
> > "io"
> >
> > "strings"
> >
> > )
> >
> > type Message struct {
> >
> > Mon string `xml:"monitor"`
> >
> > Data string `xml:"data"`
> >
> > }
> >
> > func main() {
> >
> > fmt.Println("Hello World!")
> >
> >
> >
> > xml_data := "CPUêÿ"
> >
> > var reader io.Reader
> >
> > reader=strings.NewReader(xml_data)
> >
> > val:=*strings.NewReader(xml_data)
> >
> > fmt.Println(reader,val)
> >
> > //read,_ := reader.Read([]byte(xml_data))
> >
> > //result,err := io_reader.Read([]byte(xml_data))
> >
> > //if err == nil {
> >
> >
> >
> > decoder := xml.NewDecoder(reader)
> >
> > //decoder.CharsetReader = func(data string,io io.Reader)(io.Reader,err)
> >
> > //decoder.RawToken()
> >
> > out := Message{}
> >
> > err := decoder.Decode()
> >
> > fmt.Println(out)
> >
> > fmt.Printf(out.Data,out.Mon)
> >
> > fmt.Println(err)
> >
> > //}
> >
> >
> >
> > }
> >
> >
> > but I am getting empty structure.
> >
> >
> > output:
> >
> > Hello World!
> >
> > &{CPUêÿ 0 -1}
> {CPUêÿ 0 -1}
> >
> > { }
> >
> > %!(EXTRA string=)
> >
> > --
> > 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.