[go-nuts] Re: Best web framework ?

2021-08-01 Thread Kevin Powick
It depends on your use-case. Many developers find the standard Go library good enough. However, I believe several developer surveys show Gin, Echo, and Beego as the top 3. -- Kevin Powick On Sunday, 1 August 2021 at 13:45:50 UTC-4 sdkm...@gmail.com wrote: > Hi ! > > which web fra

[go-nuts] Re: early close of http.Client's Response.Body

2019-11-28 Thread Kevin Powick
-http-client-library-for-load-testing/ -- Kevin Powick On Monday, 25 November 2019 12:54:04 UTC-5, Liam wrote: > > Scenario: > Sending a client request and only reading the whole Response.Body for > certain .StatusCode values, and/or reading only the first N bytes. > > Docs for

[go-nuts] Re: Writing an Excel add-in using Go?

2019-01-22 Thread Kevin Powick
n-express.com/add-in-net/index.php I have no affiliation with them. I'm just a happy customer. -- Kevin Powick On Tuesday, 22 January 2019 10:35:24 UTC-5, mrec...@gmail.com wrote: > > Hi, > > I was wondering if there is a library supporting writing an Excel add-in > in Go. G

[go-nuts] Re: Go as your first language

2018-01-16 Thread Kevin Powick
I've had good feedback from colleagues on the following course. https://appliedgo.com/p/mastergo There are also the usual reference at golang.org such as "Effective Go", the on-line introduction, and the language spec itself. -- Kevin Powick On Tuesday, 16 January 2018 02:10:

[go-nuts] Re: why can't change map when in for range statements?

2018-01-15 Thread Kevin Powick
first place. Some type of a conditional with a *break* statement would seem better to me. -- Kevin Powick On Monday, 15 January 2018 22:00:30 UTC-5, sheepbao wrote: > > Thanks reply, I know *range expression is evaluated once before beginning > the loop, *but I delete map in for statemen

[go-nuts] Re: why can't change map when in for range statements?

2018-01-15 Thread Kevin Powick
s evaluated once before beginning the loop, with one exception: if the range expression is an array or a pointer to an array and at most one iteration variable is present, only the range expression's length is evaluated; if that length is constant, by definition the range expression itself

[go-nuts] Re: Easy access to #golang

2017-11-19 Thread Kevin Powick
On Friday, 17 November 2017 10:47:44 UTC-5, Sam Whited wrote: > > Hi all, > > I don't like signing up for accounts, or having to jump through hoops > (even if they're relatively straight forward hoops) to get an invite to > something that should just be public. Also, some people seem to like

Re: [go-nuts] a bug about go language

2017-10-26 Thread Kevin Powick
hing wrong with Go and/or the program itself. This is probably not the best way to learn Go. Try staring with the Go Tour (https://tour.golang.org), and read some of the other excellent documentation at golang.org. -- Kevin Powick PS. If you find SublimeText useful, you should support the author b

[go-nuts] Re: Choosing a framework

2017-09-13 Thread Kevin Powick
think is too bloated, and one I might consider. Again, these are for personal reasons, so I suggest you learn Go more fully before making a decision. -- Kevin Powick On Saturday, 9 September 2017 19:51:40 UTC-4, Tim Uckun wrote: > > I am in the process of learning go and decided to do it by w

[go-nuts] Re: Golang timers guarantees

2017-04-05 Thread Kevin Powick
This may not be entirely applicable to your use case, but you may find the following Go proposal for Monotonic Time to be an interesting read. https://github.com/golang/proposal/blob/master/design/12914-monotonic.md -- Kevin Powick On Wednesday, 5 April 2017 07:29:40 UTC-5, te...@segment.com

Re: [go-nuts] Re: Save Documents in Database

2017-04-03 Thread Kevin Powick
On Monday, 3 April 2017 18:22:40 UTC-5, John McKown wrote: > > On Mon, Apr 3, 2017 at 5:37 PM, Kevin Powick > wrote: > >> Why put the documents in a database on your server at all? Just store the >> document in the file system with a unique ID. >> &g

[go-nuts] Re: Save Documents in Database

2017-04-03 Thread Kevin Powick
bloated and more performant. -- Kevin Powick On Monday, 3 April 2017 16:26:45 UTC-5, Tomi Häsä wrote: > > That is exactly what I was thinking. I could save the files as > OpenDocument format, DocBook format, etc. in Android but in proprietary > format in the database where no-one else i

Re: [go-nuts] Is it harmful to always return invalid values on a non-nil-error?

2017-04-03 Thread Kevin Powick
at I intend to make this part of an API contract, I'll scream. Ok, so then it doesn't matter what you return, because the user of the API is supposed to check the error. This seems to be universally understood by both parties (API creator & user). Ignore errors at your own per

[go-nuts] Re: Save Documents in Database

2017-04-03 Thread Kevin Powick
Sounds like you're re-inventing a wheel that not only may be a lot of work, but will result in a proprietary format that is incompatible with everything. -- Kevin Powick On Monday, 3 April 2017 02:33:31 UTC-5, Tomi Häsä wrote: > > Because Go has structs and it can read for example X

Re: [go-nuts] Is it harmful to always return invalid values on a non-nil-error?

2017-04-03 Thread Kevin Powick
esponsibility for the programs they write. If anyone writing an API want's to help the users of their APIs, then provide meaningful, detailed information in any returned error. -- Kevin Powick On Saturday, 1 April 2017 13:12:24 UTC-5, Val wrote: > > Alex, this thread may be lost but ple

Re: [go-nuts] Re: Deploying go https servers

2017-03-10 Thread Kevin Powick
I haven't done that, but with what little I do know about that type of deployment, I cannot see how choosing Caddy would make any difference. If you do go that route, I would appreciate hearing about any success or problems that you have. -- Kevin Powick On Friday, 10 March 2017 22:

[go-nuts] Re: Deploying go https servers

2017-03-10 Thread Kevin Powick
s on our Go API service being only that, and not a web page server as well. -- Kevin Powick On Wednesday, 8 March 2017 14:02:50 UTC-5, Sankar wrote: > > Hi > > I have written a golang REST API server and a react webapp that talks to > this REST server. There is a mysql server t

[go-nuts] Re: ActiveState seeking Go community feedback

2017-02-20 Thread Kevin Powick
o your customers, while looking for support from they very community that your marketing claims is risky. I'm not really up on Activestate's involvement with Go, but have they contributed to the development or promotion of Go in any significant way? -- Kevin Powick -- You received t

Re: [go-nuts] Arguments for writing fast, high-load servers in Go instead of Scala?

2017-02-20 Thread Kevin Powick
om/go-geofence/ -- Kevin Powick On Monday, 20 February 2017 07:26:46 UTC-5, Konstantin Khomoutov wrote: > > > The post is kind of old but I'm not sure the situation could have > changed drastically during a single year. > > 1. http://jimplush.com/talk/2015/12/19/moving-a-team-from

[go-nuts] Re: Using React with Golang? and does it make sense?

2017-02-06 Thread Kevin Powick
service simply returning JSON data is that it can be consumed by any client software capable of an HTTP request. This make it available to any number of languages with HTTP Client libraries available. These days, that's pretty much any language you would care to work with. -- Kevin Powi

Re: [go-nuts] json: cannot unmarshal array into Go value of type main error

2017-02-06 Thread Kevin Powick
Oops. I didn't see this correct answer posted by Kortschak -- Kevin Powick On Thursday, 2 February 2017 18:41:13 UTC-5, kortschak wrote: > > You have handed json.Unmarshal a non-slice/non-array type. > > Try this https://play.golang.org/p/Zl5G_Rkt26 > > > --

[go-nuts] Re: json: cannot unmarshal array into Go value of type main error

2017-02-06 Thread Kevin Powick
Since you have an array of JSON data, you need to Unmarshal it into an Array of your struct, then range over the resulting array of your struct. Updated version of your code at: https://play.golang.org/p/gnx7pjTzOT -- Kevin Powick On Thursday, 2 February 2017 18:20:49 UTC-5, Rejoy wrote

[go-nuts] Re: Go Fonts: request for feedback

2017-02-06 Thread Kevin Powick
Not being familiar with the field of typography, I have no idea how these changes will affect the Go fonts. However, if they make the examples shown in the Go blog from November 2016 significantly less ugly, I'm all for ti. -- Kevin Powick On Thursday, 2 February 2017 19:25:42 UTC-5,

[go-nuts] Re: Using React with Golang? and does it make sense?

2017-02-06 Thread Kevin Powick
nd I would recommend a similar approach for those looking to use a Go based solution. i.e. Go JSON API services with your web server and JS framework of choice. -- Kevin Powick On Monday, 6 February 2017 12:09:10 UTC-5, so.q...@gmail.com wrote: > > Correct me if I'm wrong, but in servi

Re: [go-nuts] xml for a person used to python's lxml - multiple attributes

2017-01-04 Thread Kevin Powick
On Monday, 2 January 2017 22:03:15 UTC-5, Sayth Renshaw wrote: > > Is there a good simple ORM or pipeline to push data to a database like > SQLite? > Many popular packages (libraries) for Go can be found by category at the following link. https://go.libhunt.com -- Kevin Powi

[go-nuts] Re: Hi, someone may help me converting this python code to GO

2016-07-09 Thread Kevin Powick
Glad to see you put some effort into it yourself. -- 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, visi