Re: [go-nuts] Unmarshalling and tags

2016-06-21 Thread Ain
iverList `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 message bec

[go-nuts] Re: Get Excel Sheet Names

2017-01-26 Thread Ain
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

[go-nuts] Re: adding aes128-cbc support to ssh.go

2016-09-14 Thread Ain
intln(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-nut

[go-nuts] Re: "gcc": executable file not found in %PATH%

2016-09-18 Thread Ain
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 unsubscrib

[go-nuts] Re: HTTP server triggers 'Access-Control-Allow-Origin' header contains multiple values error

2016-12-06 Thread Ain
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 from this group

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 <ain.v...@gmail.com > wrote: > > > ie there are some headers and then base64 encoded data. I suspect there > > might be some functions in the std lib wh

Re: [go-nuts] sort.Slice arguments

2017-03-08 Thread Ain
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

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 <ain.v...@gmail.com > wrote: > > > > > ie there are some headers and then base64 encoded data. I suspect > > there might be some f

[go-nuts] database/sql - prepared select statements only work on first invocation

2017-08-16 Thread Ain
.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 in the database/sql? go vers

[go-nuts] Re: database/sql - prepared select statements only work on first invocation

2017-08-28 Thread Ain
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 != nil { >

[go-nuts] Re: database/sql - prepared select statements only work on first invocation

2017-08-28 Thread Ain
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:

[go-nuts] Re: database/sql - prepared select statements only work on first invocation

2017-08-28 Thread Ain
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 silly som

[go-nuts] Re: database/sql - prepared select statements only work on first invocation

2017-08-28 Thread Ain
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 it, s

[go-nuts] Re: database/sql - prepared select statements only work on first invocation

2017-08-28 Thread Ain
ould 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

[go-nuts] Re: Go Generate Vs Go Build!

2017-12-17 Thread Ain
rving 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 subs

Re: [go-nuts] Re: How to know if interface{} data is nil w/o reflecting?

2017-11-01 Thread Ain
f r and 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 you w

[go-nuts] Re: How to check if a request was cancelled

2017-11-08 Thread Ain
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 >

[go-nuts] Re: XML parsing and memory usage

2017-11-01 Thread Ain
ith 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.davidsingleton.org/parsing-huge-xml-files-with-

[go-nuts] Re: [ANN] Cross-platform HTML/CSS GUI library

2017-10-25 Thread Ain
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

[go-nuts] Re: Embedded WebBroser

2017-12-29 Thread Ain
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

[go-nuts] Re: How to send multiple responses (file upload progress) to the client?

2018-01-05 Thread Ain
ole 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 subscribed

[go-nuts] Re: Email sent via command line is not delivered in Golang

2018-01-24 Thread Ain
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 >

[go-nuts] Re: emersion/go-imap - How to retrieve and list unseen messages

2018-02-27 Thread Ain
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/49009432/723

[go-nuts] About godoc and private doc server

2019-05-30 Thread Ain
/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 this group and s

[go-nuts] Re: godoc (golang.org/x/tools/cmd/godoc) has become module-aware

2019-11-08 Thread Ain
bsite), 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 an

[go-nuts] Re: trouble parsing XML with embedded structs

2020-06-06 Thread Ain
var input = ` hello ` v := Envelope{} if err := xml.Unmarshal([]byte(input), ); err != nil { log.Panic(err) } fmt.Printf("%+v\n", v) } HTH ain -- You received this message because you are subscribed to the Google Groups "golang-nuts&quo