t;str"`
}
func main() {
var input = `
hello
`
v := Envelope{}
if err := xml.Unmarshal([]byte(input), &v); err != nil {
log.Panic(err)
}
fmt.Printf("%+v\n", v)
}
HTH
ain
--
You received this message because you are subscribed
), has been updated with support for Go
> modules. (This was issue 33655 <https://golang.org/issue/33655>.)
>
Great news, thank you!
Ain
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and st
t github golang/gddo repo.
Any other options?
Any tips how to set it up (ie what needs to be done to get godoc.org up and
able to access private repos)?
TIA
ain
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from t
teisipäev, 27. veebruar 2018 15:11.58 UTC+2 kirjutas Ivo Freitas:
>
> Hello
>
> I'm trying to use this implementation of IMAP protocol mas seems to be
> impossible to retrieve unseen messages from the mailbox.
>
Cross-posted to SO:
https://stackoverflow.com/q/4900943
Cross-posted to
SO:
https://stackoverflow.com/questions/48421688/email-sent-via-command-line-is-not-delivered-in-golang
ain
kolmapäev, 24. jaanuar 2018 13:49.05 UTC+2 kirjutas Amandeep Kaur:
>
>
>
>
> I am sending emails in one of my projects through command line. The
> p
le thing finishes.
>
If the client is browser and uses XMLHttpRequest to POST the file then it
can use XMLHttpRequest.upload.onprogress eventhandler to track the
progress. No need to do anything on the server side for that to work.
HTH
ain
--
You received this message because you are
On Friday, December 29, 2017 at 8:58:33 PM UTC+2, Jason Petersson wrote:
>
> Hello is there a GitHub project or example of an application that can be
> built for calling simple html and maybe java script?
>
https://github.com/zserge/webview
https://github.com/asticode/go-astilectro
it via HTTP
> - gorename, for renaming variables, functions, and so on in a type-safe
> way
> - go generate, a standard way to invoke code generators
>
> Please explain me.
>
Have you seen https://golang.org/cmd/go/
HTH
ain
--
You received this message because you are subscrib
I noticed that OP has also posted this question to SO:
https://stackoverflow.com/questions/47179024/how-to-check-if-a-request-was-cancelled
ain
kolmapäev, 8. november 2017 14:02.13 UTC+2 kirjutas Glen Huang:
>
> I have this simple code in which I try to check if the request was
>
memory usage!
> A file with approximately 900 MB is consuming 4 GB RAM and one with 3.3 GB
> can consume almost 14 GB RAM. Not cool!
>
> Do you guys have any suggestions on how to circumvent this ?
>
One option is to use "streaming mode", see ie
http://blog.davidsingle
I don't believe anyone ever promised that you can change
> the type of a variable to an interface AND preserve its behavior.
>
> Would you expect r to behave the same if you changed it from type string
> to an int?
>
Point is, in that case compiler would catch it for you and
create native menu for the main wnd;
- ability to set app icon.
ain
--
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...@g
u should create something comparable so that others can test your code.
>
Your code works for me too. But If I swich to firebird driver then the
error is back... Might be driver specific issue after all... must test some
more.
Thakns for taking time to test it.
ain
--
You received
k look at the code and didn't see the statement closed
(but I have not digged really into code, just a quick look).
ain
--
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
On Monday, August 28, 2017 at 5:07:30 PM UTC+3, Christian Joergensen wrote:
>
> On Monday, August 28, 2017 at 3:52:54 PM UTC+2, Ain wrote:
>>
>> Does anyone use prepared select statements sucessfully? With which
>> DB/driver?
>> I'm sure that if my code is sill
On Monday, August 28, 2017 at 5:13:09 PM UTC+3, Uli Kunitz wrote:
>
> Where are you calling Exec on the statement?
>
I'm talking about SELECT statements.
https://godoc.org/database/sql#Tx.Exec
<>
ain
>
> On Monday, August 28, 2017 at 3:52:54 PM UTC+2, Ain wrote:
trying to use prepared select statements...
TIA
ain
On Thursday, August 17, 2017 at 12:03:47 AM UTC+3, Ain wrote:
>
> Hi
>
> I tried to use prepared statements and it works first time, but fails on
> second query. Ie code like
>
> tx, err := db.Begin()
> if err !=
github.com/nakagami/firebirdsql). Both id's exist in the DB so single row
is expected for both executions.
I also got error with "github.com/mattn/go-sqlite3" driver so I don't think
this is a driver specific issue... either I use it the wrong way or there
is a bug
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 w
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
>
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, right? Perhaps something in the http client
package?
TIA
ain
--
You received this message because you are subscribed to the Google Group
ot;, "Chicago", "Boston", "Austin"}
itinerary[1:].sort()
fmt.Println("My new itinerary is", itinerary)
}
ain
On Wednesday, March 8, 2017 at 5:01:08 PM UTC+2, Val wrote:
>
> Sorry for not elaborating in the first place (I was trying to mak
doc:
xlFile, err := xlsx.OpenFile(excelFileName)
for _, sheet := range xlFile.Sheets {
fmt.Println(sheet.Name)
}
HTH
ain
>
> Regards
> David
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscrib
t; header although I can't find any mention of this in the docs.
>
Do you use any http middleware / frameworks or is it plain net/http server?
ain
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe f
kolmapäev, 26. oktoober 2016 12:17.50 UTC+3 kirjutas Dave Cheney:
>
> I agree strongly and have been advocating for this all year.
Dave, there is no context on your post so it is not clear what do you agree
with... :)
ain
--
You received this message because you are subscribed to the
your app
anymore.>>
So how did you install the go-sqlite3 <http://github.com/mattn/go-sqlite3>,
using "go get..." or "go install..."?
HTH
ain
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscri
mt.Println(ssh.returnCiphers())
>
> Assistance will greatly be appreciated.
>
>>
>>
Your function name starts with lower case character which means that it is
not exported.
ain
--
You received this message because you are subscribed to the Google Groups
"golang-n
.ReceiverList
`xml:"receiverList,omitempty"` `json:"receiver"`
}
compiler would concatenate them into single string so all code will
continue to work but this would allow the gofmt to align them into neat
columns, making it easier to read.
ain
--
You received this messag
you could help
> me to get the difference from use or not the connection pool, which is the
> best practice?
>
The documentation of the Open method in database/sql package
(https://golang.org/pkg/database/sql/#Open) reads:
<>
HTH
ain
--
You received this message because you
29 matches
Mail list logo