[go-nuts] Re: My views on Go and why it's better than Scripting

2018-03-02 Thread dorival . pedroso
Thanks for your suggestion! To put it in context, I'm drafting a plan for my colleagues in order to make a case for using Go in teaching instead of Fortran or C. On Friday, March 2, 2018 at 1:29:45 PM UTC-8, dorival...@gmail.com wrote: > > Hi, I could be wrong (please correct me ;-), but here

[go-nuts] My views on Go and why it's better than Scripting

2018-03-02 Thread dorival . pedroso
Hi, I could be wrong (please correct me ;-), but here you are what I think about Go: INTRODUCTION Computers and software were initially developed for scientific computing; e.g., ALGOL and FORTRAN from the 1950s! Therefore, several computer languages and libraries have been invented and are

Re: [go-nuts] General question: complex search form and query params

2018-03-02 Thread benjamin . guy . thomas
Thanks for the feedback. I'm only vaguely familiar with graphql. From my understanding, it's meant to facilitate data query for the frontend dev. But I'm looking at things more from a user perspective here, see my github example. I might have to dig into this though. Le vendredi 2 mars 2018

[go-nuts] Re: How to limit what the `go get` command is able to import

2018-03-02 Thread paraiso . marc
> Our internal packaging teams biggest worry is that we don't want someone to download something to their development laptop, compile the code into a standalone binary, then deploy that out to our container platforms. That's not really a problem with Go but an organizational problem. You

[go-nuts] Re: General question: complex search form and query params

2018-03-02 Thread benjamin . guy . thomas
> > I believe correctly used database/sql (with the argument placeholders) > protects against SQL injection > Yeah I badly explained this, an SQL builder solves security *AND* flexibility for me. Standard database/sql placeholders are too painful when the user params are too complex, and I

[go-nuts] Re: How to limit what the `go get` command is able to import

2018-03-02 Thread matthewjuran
How do you stop people from downloading and deploying arbitrary python or java libs? I can see that more than a developer policy is needed since it takes a corrupt employee only one try to break the system before they’re caught, and if the employee actually just made a mistake then firing them

[go-nuts] Re: How to limit what the `go get` command is able to import

2018-03-02 Thread brendan . p . odwyer
Yes(technically) our deploys are controlled via gitlab. Our internal packaging teams biggest worry is that we don't want someone to download something to their development laptop, compile the code into a standalone binary, then deploy that out to our container platforms. In our production

Re: [go-nuts] General question: complex search form and query params

2018-03-02 Thread Lutz Horn
Nowadays I suppose best way to do something like this is using GraphQL (for ex. https://github.com/graphql-go/graphql). But GraphQL != SQL. Building SQL from HTTP query parameters is not made more simple and secure by building GraphQL from HTTP query parameters. Lutz -- You received this

Re: [go-nuts] General question: complex search form and query params

2018-03-02 Thread Alex Efros
Hi! Many years ago I've implemented something similar in Perl, which was later released as https://metacpan.org/pod/DBIx::SecureCGI. Nowadays I suppose best way to do something like this is using GraphQL (for ex. https://github.com/graphql-go/graphql). -- WBR, Alex. --

[go-nuts] Re: General question: complex search form and query params

2018-03-02 Thread matthewjuran
> > To prevent SQL injection and for flexibility, I'm set on using an sql > builder library. I believe correctly used database/sql (with the argument placeholders) protects against SQL injection. There’s a query builder for postgres with MIT license posted here a few days ago:

Re: [go-nuts] Alibaba Cloud hash released official Go SDK v1.0.0

2018-03-02 Thread Henrik Johansson
I am sure it's really cool but the docs are in chinese I assume. Most other projects speared by non native English speakers still write in English. Is a translation available? On Fri, Mar 2, 2018, 14:44 wrote: > https://github.com/aliyun/alibaba-cloud-sdk-go > > Any

[go-nuts] Alibaba Cloud hash released official Go SDK v1.0.0

2018-03-02 Thread sdgrtong
https://github.com/aliyun/alibaba-cloud-sdk-go Any questions you have when using it can be asked directly in the issue area -- 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

Re: [go-nuts] interface question

2018-03-02 Thread Lutz Horn
How can i get a list about which interface is implemented by this struct methods? (Because in Go there is no explicit interface declaration.) os.Open returns an os.File (https://golang.org/pkg/os/#Open). os.File (https://golang.org/pkg/os/#File) has functions and methods listed in the index

[go-nuts] General question: complex search form and query params

2018-03-02 Thread benjamin . guy . thomas
Hello gophers, Sorry if this is considered noise to some, as I have a question which is not specifically go related. I have a personal project in which I'd like to use go though. Basically, I'd like to create a complex search form, returning data backed by an SQL database. To prevent SQL

[go-nuts] Re: interface question

2018-03-02 Thread Tamás Gulácsi
Sorry, that only lists the defined interfaces. As there's no explicit interface "implements" declaration, it is only checked at compile time. For example, guru (https://docs.google.com/document/d/1_Y9xCEMj5S-7rv2ooHpZNH15JgRT5iM742gJkw5LtmQ/view#heading=h.f6hyappclfor) can help. -- You

[go-nuts] Re: interface question

2018-03-02 Thread Tamás Gulácsi
> How can i get a list about which interface is implemented by this struct > methods? (Because in Go there is no explicit interface declaration.) > > for example : io.Closer etc. > Every struct that has all the methods exactly as that interface defines - for io.Closer, a "Close() error" is

[go-nuts] interface question

2018-03-02 Thread k1attila1
Hi Beginner question I want to use this : func Open(name string) (*File, error) I would like to us *File as return value. File is declared as : type File struct { *file // os specific } I understand it. BUT How can i get a list about which interface is implemented by this struct

Re: [go-nuts] Go list returning directory starting with underscore on Ubuntu

2018-03-02 Thread Michel Hollands
My mistake: there was no src directory under the gopath. It works now. -- 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.

Re: [go-nuts] Go list returning directory starting with underscore on Ubuntu

2018-03-02 Thread Sebastien Binet
Michel, Could you post the output of 'go env' and the name of the directory from which you re-ran 'go list'? -s sent from my droid On Mar 2, 2018 9:38 AM, "Michel Hollands" wrote: > Hello Sebastien, > > After setting GOPATH it still occurs. > > Thanks, > > Michel >

Re: [go-nuts] Go list returning directory starting with underscore on Ubuntu

2018-03-02 Thread Michel Hollands
Hello Sebastien, After setting GOPATH it still occurs. Thanks, Michel -- 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

Re: [go-nuts] High precision timer data?

2018-03-02 Thread James Chacon
On Thu, Mar 1, 2018 at 11:07 PM, James Chacon wrote: > > > On Thu, Mar 1, 2018 at 10:13 AM, Ian Lance Taylor wrote: > >> On Thu, Mar 1, 2018 at 8:56 AM, James Chacon >> wrote: >> > >> > I know the time package includes support