[go-nuts] Re: const struct

2017-09-10 Thread Flying
Here is the explation of const from the go programmer lauguage specification A constant declaration binds a list of identifiers (the names of the constants) to the values of a list of constant expressions . 在 2017年9月8日星期五 UTC+8下午12:52:44,DrGo写道:

Re: [go-nuts] Re: Do you guys use ORMs when working with SQL?

2017-09-10 Thread Henrik Johansson
The switching of databases can happen but I have always solved it at a higher "service" level. What ORM's help you with is quickly getting started and it can in some cases help you with type safety. In the (not so) long run only the second matter and personally I wish there was something like

Re: [go-nuts] Re: Choosing a framework

2017-09-10 Thread Henrik Johansson
Maybe it is better nowadays but at least last time I tried a bigger framework the first thing that happened was I had to either change logger or wrestle with how the framework did it's logging. I would from experience in both Go and other languages (mostly Java, Spring is not your friend) very

Re: [go-nuts] Re: Choosing a framework

2017-09-10 Thread Henry
Actually, there is nothing in Go that prevents you from using any kind of frameworks. You are free to use whatever you wish. Go provides a more complete standard library for web development than many other programming languages. While in other languages you have to rely on frameworks, in Go,

Re: [go-nuts] Re: Choosing a framework

2017-09-10 Thread Tim Uckun
I will simply point out that go seems to be alone in this regard. All other languages that I know and have used have embraced the idea that it's OK to assemble various functionalities in a useful framework which one can deploy without too much effort. On Monday, September 11, 2017 at

[go-nuts] Re: Help with viper please.

2017-09-10 Thread Tim Uckun
Ah cool thanks. That did it! Cheers! On Monday, September 11, 2017 at 12:12:27 PM UTC+12, Bojan Delic wrote: > > You should not use SetConfigFile. Its documentation says: > >> SetConfigFile explicitly defines the path, name and extension of the >> config file. >> Viper will use this and not

[go-nuts] Re: Choosing a framework

2017-09-10 Thread Tim Uckun
On Monday, September 11, 2017 at 12:56:40 PM UTC+12, Florin Pățan wrote: > > Given your list of choices, I would go for Buffalo as it's probably the > closest you can get to an idiomatic Go code base while not having magic in > the code and still be able to understand what's happening when

[go-nuts] Re: Choosing a framework

2017-09-10 Thread Florin Pățan
Given your list of choices, I would go for Buffalo as it's probably the closest you can get to an idiomatic Go code base while not having magic in the code and still be able to understand what's happening when things go wrong. As others have recommended, also try writing your code without the

[go-nuts] Today I discovered another std lib gem: strings.NewReplacer

2017-09-10 Thread Mandolyte
Thanks for sharing! I can use this to simply some Go code -- 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

[go-nuts] Re: Help with viper please.

2017-09-10 Thread bojan . delic
You should not use SetConfigFile. Its documentation says: > SetConfigFile explicitly defines the path, name and extension of the > config file. > Viper will use this and not check any of the config paths. You should use SetConfigName instead and pass it "settings", without extension. Its

[go-nuts] [ANN] fsimilar - find similar files

2017-09-10 Thread Tong Sun
Do you have duplicated files on HD in your collection? Take a look at this file-list , the first column is the file size and the next

Re: [go-nuts] Re: Do you guys use ORMs when working with SQL?

2017-09-10 Thread Shawn Milochik
On Sun, Sep 10, 2017 at 11:31 AM, wrote: > Modern ORMs at least more type-safe than SQL: there is no work with > strings, only with autogenerated constants. Also ORMs abstract you not only > from SQL coding, but also from specific for DBMS SQL: with ORM you can > easily

Re: [go-nuts] Re: Do you guys use ORMs when working with SQL?

2017-09-10 Thread main . iden
Modern ORMs at least more type-safe than SQL: there is no work with strings, only with autogenerated constants. Also ORMs abstract you not only from SQL coding, but also from specific for DBMS SQL: with ORM you can easily switch PostgreSQL to MySQL. воскресенье, 10 сентября 2017 г., 3:43:42

Re: [go-nuts] Re: Why there is a so great performance penalty when the usage combines LockOSThread and channel?

2017-09-10 Thread kirr
вторник, 22 ноября 2016 г., 23:47:51 UTC+3 пользователь Ian Lance Taylor написал: > > On Tue, Nov 22, 2016 at 12:37 PM, Dave Cheney > wrote: > > Thinking about this overnight I think this benchmark > > > > https://play.golang.org/p/5d4MUKqPYd > > > > Shows the issue you

[go-nuts] Parallel implementation of saxpy not scaling well across cores. Symptomatic of an underlying problem or expected behavior?

2017-09-10 Thread chatrapathi . akula
I have asked the question on stack overflow here . -- 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

[go-nuts] Re: how to get the SQL Dataframe into GOTA

2017-09-10 Thread fazal
What is a GOTA? Have you tried using `row.Scan()`? Regards On Saturday, September 9, 2017 at 12:57:14 PM UTC+5, Vikram Rawat wrote: > > can anybody help me out with it. I want to get this data into GOTA > Dataframe. I just can't figure out how to get the data from SQL into GOTA >