Re: [go-nuts] Parsing base64 data with headers

2017-04-06 Thread Konstantin Khomoutov
On Thu, 6 Apr 2017 14:50:43 +0300 Konstantin Khomoutov wrote: > > I get string which contains: [...] > What you're dealing with is a typical set of headers of a so-called > "MIME-formatted" e-mail message followed by its body. The usual set > of headers is missing (those 'From', 'To' etc) and th

Re: [go-nuts] Parsing base64 data with headers

2017-04-06 Thread Ain
neljapäev, 6. aprill 2017 14:51.13 UTC+3 kirjutas Konstantin Khomoutov: > > On Thu, 6 Apr 2017 04:00:20 -0700 (PDT) > Ain > wrote: > > > > > ie there are some headers and then base64 encoded data. I suspect > > there might be some functions in the std lib which should be able to > > parse thi

Re: [go-nuts] Parsing base64 data with headers

2017-04-06 Thread Konstantin Khomoutov
On Thu, 6 Apr 2017 04:00:20 -0700 (PDT) Ain wrote: > I get string which contains: > > MIME-Version: 1.0 > content-type: text/xml > content-transfer-encoding: base64 > > PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPD94bWwtc3R5bGVzaGVldCB0 > ... > > > ie there are some headers and then

Re: [go-nuts] Parsing base64 data with headers

2017-04-06 Thread Ain
neljapäev, 6. aprill 2017 14:07.13 UTC+3 kirjutas ehedgehog: > > On 6 April 2017 at 12:00, Ain > wrote: > > > ie there are some headers and then base64 encoded data. I suspect there > > might be some functions in the std lib which should be able to parse > this > > and give me easy access to t

Re: [go-nuts] Parsing base64 data with headers

2017-04-06 Thread 'chris dollin' via golang-nuts
On 6 April 2017 at 12:00, Ain wrote: > ie there are some headers and then base64 encoded data. I suspect there > might be some functions in the std lib which should be able to parse this > and give me easy access to the headers and data but I just can't find it... > it isn't mime/multipart, righ

[go-nuts] Parsing base64 data with headers

2017-04-06 Thread Ain
Hi I get string which contains: MIME-Version: 1.0 content-type: text/xml content-transfer-encoding: base64 PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPD94bWwtc3R5bGVzaGVldCB0 ... ie there are some headers and then base64 encoded data. I suspect there might be some functions in the st