[go-nuts] unable to use golangci-lint against go-1.12.10 src

2019-09-27 Thread Shane H
On a whim I thought I'd see how the linters felt about the go src code, the current results for go 1.12.10 are below. In the result you will note that I am unable to compile go because a file is missing (libtestgo2c2go.h). I cannot find it on my system, nor can I find it on the internet. The i

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread alex . besogonov
First, nobody thinks that knowing ORM's query language absolves one from knowing SQL. But the main issue is that Go SQL interface SUCKS. It's verbose, hard to use and is difficult to integrate with additional tooling (try adding generic tracing support, I dare you!). So often your SQL code is h

[go-nuts] Re: Is there anything wrong with proxy.glang.org?

2019-09-27 Thread Deep Datta
That an international module? That might be why - but you can also try this proxy: https://search.gocenter.io/stats On Friday, September 27, 2019 at 12:24:09 AM UTC-7, Darren Hoo wrote: > > Try to get this package: > > $ go get -u github.com/bilibili/kratos/tool/kratos > > >> go: finding github

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Robert Engels
It was supposed to be “without an ORM”... > On Sep 27, 2019, at 1:27 PM, Robert Engels wrote: > > And I’ll reiterate that you’re (and the article) is missing the point. > > Using a simple case of customers and orders. With an ORM when you want to > show all orders for all customers with the c

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Robert Engels
And I’ll reiterate that you’re (and the article) is missing the point. Using a simple case of customers and orders. With an ORM when you want to show all orders for all customers with the customer details, you need to join the customer with the order in every row. This is a huge waste of bandwi

Re: [go-nuts] Re: go 1.13 won't compile

2019-09-27 Thread Ian Lance Taylor
On Thu, Sep 26, 2019 at 11:08 AM Robert Solomon wrote: > > Should I file an issue I recommend that you use package paths whose first element is a domain name. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] JWT validation only in Middleware

2019-09-27 Thread Matt-Klaus Mush
While trying to make Go my #1 backend language, I decided to build an API authentication app, since most of the applications I work on require it. Have a look at my code on Github (at https://github.com/mmattklaus/go-jwt-demo), and see how I approached it. I documented every bit. Hopefully, it'll

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Lutz Horn
On Fri, Sep 27, 2019 at 05:34:28PM +0700, Dimas Prawira wrote: > Many Gophers don't like ORM as : Just to emphasize this point: https://korban.net/posts/postgres/2017-11-02-the-case-against-orms/ Lutz -- You received this message because you are subscribed to the Google Groups "golang-nuts" g

[go-nuts] transparent mitmproxy with cert caching

2019-09-27 Thread Vasiliy Tolstov
Hi!. I found many mitmproxy tools in go, but can't find any that able to cache generated certificates. I think that this is saves compute time. Also i want to modify it to work with uBlock to deny unneeded requests. Do you know anything about this? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Josh Kamau
This works well for me. https://upper.io/db.v3/ On Fri, 27 Sep 2019 at 15:56, Robert Engels wrote: > The piece you are missing about ORM is the automatic change detection and > caching when using complex object graphs. This is not trivial by any means > when using raw SQL. It’s not easy using an

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Robert Engels
The piece you are missing about ORM is the automatic change detection and caching when using complex object graphs. This is not trivial by any means when using raw SQL. It’s not easy using an orm either sometimes - depends on the orm. > On Sep 27, 2019, at 6:13 AM, Dimas Prawira > wrote: >

Re: [go-nuts] JWT validation only in Middleware

2019-09-27 Thread Martin Palma
Yes the handler are arranged as follows: OAuth2Middleware (JWT token creation on login / JWT validation) -> InputValidationMiddleware (decoding and validating user input and checks if the user has the rights to view/request the data according to the claims in the JWT) -> API Handler (decoding user

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Dimas Prawira
if there's something you _don't_ know how to do in SQL, and it seems the ORM can do it for you, capture the raw SQL the ORM produces and tell me if it's easier for you to understand the SQL or the random ORM API. I 100% guarantee you that the raw SQL the ORM produces will be easier to understand i

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Space A.
Many gophers like ORM. ORM is a tool and as any other tool it does save the time when used in a right way in a right place. But you need to learn how to use it. пт, 27 сент. 2019 г. в 13:35, Dimas Prawira : > Many Gophers don't like ORM as : > 1. ORM introduce an additional layer of abstraction

Re: [go-nuts] Go Time #100 with Robert Griesemer and myself

2019-09-27 Thread Tamer Gür
Thanks glad to listen. On Fri, 27 Sep 2019 at 11:36, Dimas Prawira wrote: > Awesome, have to watch this.. > > cheers > > On Thu, Sep 26, 2019 at 6:14 AM Rob Pike wrote: > >> It's now live: https://changelog.com/gotime/100 >>

Re: [go-nuts] Go Time #100 with Robert Griesemer and myself

2019-09-27 Thread Dimas Prawira
Awesome, have to watch this.. cheers On Thu, Sep 26, 2019 at 6:14 AM Rob Pike wrote: > It's now live: https://changelog.com/gotime/100 > > > -rob > > -- > You received this message because you are subscribed to the

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Dimas Prawira
Many Gophers don't like ORM as : 1. ORM introduce an additional layer of abstraction that doesn't accomplish anything. 2. SQL syntax is more or less the same for every database. 3. If you learn an ORM in Java, you will only ever able to use that ORM knowledge in Java. If you learn SQL, you can use

[go-nuts] Re: Golang library for - ORM & Schema Migration

2019-09-27 Thread Space A.
gorm.io On Friday, September 27, 2019 at 12:20:54 AM UTC+3, bram wrote: > > Hi, > > Can you pls suggest libs for ORM & Schema Migration. > > Thanks. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

Re: [go-nuts] lots of 'undeclared name' errors with vscode/gopls

2019-09-27 Thread Xiangdong JI
Thanks for the hint. My vscode project is built on Go source code tree, turns out gopls, the project (go compiler source) and go binary should be version compatible, I solved the problem by setting the source code path as GOROOT in settings.json and rebuild the extension tools. On Friday, Sept

[go-nuts] Is there anything wrong with proxy.glang.org?

2019-09-27 Thread Darren Hoo
Try to get this package: $ go get -u github.com/bilibili/kratos/tool/kratos > go: finding github.com/bilibili/kratos v0.2.3 > go: downloading github.com/bilibili/kratos v0.2.3 > go: extracting github.com/bilibili/kratos v0.2.3 > go get: github.com/bilibili/kratos@v0.2.3 requires > golang.org/x