SV: [go-nuts] 1: json: cannot unmarshal array into Go value of typemain.Catcher or 2: json: cannot unmarshal object into Go value of typemain.Crypto4

2018-05-01 Thread Michael Banzon
fmt.Println’s will save the day 😊 -- Michael Banzon https://michaelbanzon.com/ Fra: m_@li Sendt: 1. maj 2018 16:05 Til: golang-nuts Emne: [go-nuts] 1: json: cannot unmarshal array into Go value of typemain.Catcher or 2: json: cannot unmarshal object into Go value of typemain.Crypto4 Hi !  I was

Re: [go-nuts] proposal: embed static assets

2018-05-02 Thread Michael Banzon
they change continually. There is no doubt that I’d welcome this feature in the standard Go toolchain - where it is implemented or how the resource is embedded is not really something I have a strong opinion about - but debugging capabilities is ;-) -- Michael Banzon https://michaelbanzon.com

Re: [go-nuts] cross-compile mac to linux

2018-05-07 Thread Michael Banzon
with the needed Linux toolchain and use that. As long as the target is Linux it is fairly easy (I am still to crack the Windows<->macOS cross compilation for my CGO code - which is also caused by SQLite). -- Michael Banzon https://michaelbanzon.com/ Den 7. maj 2018 kl. 07.22 skrev Rohi

Re: [go-nuts] Code completion w/o GOPATH

2018-08-09 Thread Michael Banzon
> I wonder how in a world of go modules without a GOPATH, > code completion within editors is supposed to be implemented? Wouldn't it work like it does now - looking in your imported packages? There might be a "problem" with auto-importing and/or browsing packages available for import. For me

Re: [go-nuts] Why is go starting multiple child process?

2018-09-16 Thread Michael Banzon
On Ubuntu you should be able to make it fancy and use htop with colouring of threads ;-) / Michael Den 17. sep. 2018 kl. 06.56 skrev Patrick Smith mailto:pat42sm...@gmail.com>>: I don't know about Ubuntu 16.04. On my Arch Linux system, 'pstree -V' shows "pstree (PSmisc) 23.1" On Sun, Sep 16,

SV: [go-nuts] New Modules and git clones

2018-11-14 Thread Michael Banzon
I have used the ”v0.0.0” as the version number – it seem to work. /M Fra: Russel Winder Sendt: 14. november 2018 12:44 Til: GoLang_Nuts Emne: [go-nuts] New Modules and git clones I am giving the module system in Go 1.11.2 a whirl

Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-23 Thread Michael Banzon
Can you provide the output you get and the source you are compiling? If you could also include the command line input+output it would probably help. /M Den 24. jan. 2019 kl. 07.13 skrev 伊藤和也 mailto:kazya.ito.dr...@gmail.com>>: Now I tried to use "Number" in the same package "main" in a differe

Re: [go-nuts] Re: Is it possible to export a variable from main package? If impossible, why?

2019-01-23 Thread Michael Banzon
The question is what you are trying to accomplish - if you want two main packages share variables you could make a third package and have both main packages import that. /M Den 24. jan. 2019 kl. 07.40 skrev 伊藤和也 mailto:kazya.ito.dr...@gmail.com>>: What Francisco Dalla Rosa Soares says is righ

[go-nuts] Check for minimum Go version

2017-08-09 Thread Michael Banzon
Hi, Is there a way to have a (bash) script check if the version of the Go compiler installed is a specific minimum version? -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

Re: [go-nuts] Check for minimum Go version

2017-08-10 Thread Michael Banzon
is having the (up-to-date) toolchain in a container. -- Michael Banzon https://michaelbanzon.com/ > Den 10. aug. 2017 kl. 09.14 skrev Konstantin Khomoutov : > > On Wed, Aug 09, 2017 at 03:11:48PM +0200, Michael Banzon wrote: > >> Is there a way to have a (bash) script check

SV: [go-nuts] Unmarshal Json

2017-09-26 Thread Michael Banzon
Can it be parsed to a map[string]json.RawMessage (or a more specific type, if the value is a known type)? -- Michael Banzon https://michaelbanzon.com/ Fra: Rich Sendt: 26. september 2017 20:23 Til: golang-nuts Emne: [go-nuts] Unmarshal Json I have a json I have to parse, and in that json one

Re: [go-nuts] Re: Go predicts the end of the universe

2017-11-11 Thread Michael Banzon
Remember to flush your buffers! -- Michael Banzon https://michaelbanzon.com/ > Den 11. nov. 2017 kl. 09.32 skrev andrey mirtchovski : > > Seems time is on our side. yes it is. -- You received this message because you are subscribed to the Google Groups "golang-nuts" gr

Re: [go-nuts] Help me MVC golang

2017-11-23 Thread Michael Banzon
tarted programming Go and found that going with the least amount of code was the right way. I recommend you try using the default HTTP routing from the std lib. -- Michael Banzon https://michaelbanzon.com/ > Den 23. nov. 2017 kl. 05.37 skrev Teo : > > -- Blog > --

Re: [go-nuts] are interface calls to empty methods optimized away - so there is no function call overhead beyond the dereference/jump?

2017-12-01 Thread Michael Banzon
I don’t have specific knowledge about how this works - but wouldn’t it be fairly easy to test by having the compiler emit the assembly code? -- Michael Banzon https://michaelbanzon.com/ > Den 1. dec. 2017 kl. 19.42 skrev Ugorji Nwoke : > > Thanks Ian. > > This is not s

RE: [go-nuts] Test a Golang API on the web

2019-05-29 Thread Michael Banzon
You could look at Heroku. It should be pretty easy to get started with. You could also find a coupon code for Digital Ocean and fire up a server on your own. / M From: golang-nuts@googlegroups.com on behalf of aimar Sent: Monday, May 27, 2019 9:28:21 AM To: g

Re: [go-nuts] checking for connection error?

2016-08-03 Thread Michael Banzon
Hi Victor, There are no "constant" errors in the sql package if thats what you are looking for. Generally if .Ping() returns an error there is no connection - afaik the error string might give some indication but it is totally up to the driver/database. If you want to sleep and try again later y

Re: [go-nuts] Go 1.7 is released

2016-08-17 Thread Michael Banzon
"No test, no trust"? On Wed, Aug 17, 2016 at 1:17 AM Brad Fitzpatrick wrote: > We a phrase as catchy as "Pics or it didn't happen" for this. "Test or > it's not trustworthy"? Needs work. > > > On Tue, Aug 16, 2016 at 2:16 PM, Dave Cheney wrote: > >> Until it's part of the ./all.bash test suite,

Re: [go-nuts] Call for Feedback: Scoping gorilla/sessions v2

2017-01-29 Thread Michael Banzon
t; 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. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message becaus

Re: [go-nuts] Wrestling with Mingw64 on Windows

2017-01-30 Thread Michael Banzon
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. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google G

Re: [go-nuts] How can I distribute incoming HTTP request to 5 asynchronous workers?

2017-01-31 Thread Michael Banzon
his 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. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] How can I distribute incoming HTTP request to 5 asynchronous workers?

2017-01-31 Thread Michael Banzon
Read the content - wrap it up and start the five goroutines and pass it to them? On Tue, Jan 31, 2017 at 10:42 PM Onur Özer wrote: > No, results not sent back and yes workers rely on the content. > > On Wed, 1 Feb 2017 at 00:41, Michael Banzon wrote: > > Does the processing resu

Re: [go-nuts] Reading http.Request form values

2017-03-03 Thread Michael Banzon
cause 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. > -- Michael

Re: [go-nuts] Building Cross Platform GUI apps in Go and Electron

2017-03-08 Thread Michael Banzon
stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google

[go-nuts] Date parsing problem

2017-03-14 Thread Michael Banzon
ng is deeply inside a much bigger codebase. Running the same parsing on the playground gives me no error: https://play.golang.org/p/DYaTwaITIo -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] Re: Date parsing problem

2017-03-14 Thread Michael Banzon
a much bigger codebase. > Running the same parsing on the playground gives me no error: > https://play.golang.org/p/DYaTwaITIo > -- > Michael Banzon > https://michaelbanzon.com/ > > -- > You received this message because you are subscribed to the Google Groups > "g

Re: [go-nuts] Re: Date parsing problem

2017-03-14 Thread Michael Banzon
ubscribed 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. > -- Michael Banzon https:/

Re: [go-nuts] Vendoring nested dependencies

2017-04-13 Thread Michael Banzon
ssage 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] sql/driver: why the Result.LastInsertId method doesn't follow the Go's style for Initialisms?

2017-04-20 Thread Michael Banzon
p. > 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. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you

Re: [go-nuts] sql/driver: why the Result.LastInsertId method doesn't follow the Go's style for Initialisms?

2017-04-20 Thread Michael Banzon
I realize now (about a minute to late) that the "ID" case is mentioned specifically in the link you gave - option two it is ;-) tor. 20. apr. 2017 kl. 17.50 skrev Michael Banzon : > I don't (really) know. > > One reason could be that the "Id" is not an acronym

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
e 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. > -- Michael Banzon https:

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
Groups "golang-nuts" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to golang-nuts...@googlegroups.com. >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >>

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Michael Banzon
> 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. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subs

Re: [go-nuts] Re: An idea about motivating the community

2017-07-18 Thread Michael Banzon
@mbanzon e.g.) - that could be a nice "passive" way to make community leaderboard (or maybe just a score lookup). -- Michael Banzon https://michaelbanzon.com/ Den 18. jul. 2017 kl. 09.02 skrev ondrej.li...@gmail.com: That's quite a lot of work! I personally hate gamificat

Re: [go-nuts] Anyone using https://github.com/knq/xo?

2017-07-19 Thread Michael Banzon
Just out of curiosity - why switch away from gorm?? We've just switched from gorp to gorm - with great success. The main reason I could find for going (pun intended) is to have one less dependency. -- Michael Banzon https://michaelbanzon.com/ Den 20. jul. 2017 kl. 06.04 skrev Nate

Re: [go-nuts] Anyone using https://github.com/knq/xo?

2017-07-20 Thread Michael Banzon
I see your point. I might checkout going bare database/sql on one of my smaller projects to get a feel for it - now that I’ve been thinking about it it strikes me that I’ve actually never tried database stuff on Go without gorp/gorm etc. -- Michael Banzon https://michaelbanzon.com/ >