Re: [go-nuts] Setting up GOPATH

2017-03-17 Thread Ian Lance Taylor
On Fri, Mar 17, 2017 at 8:10 PM, wrote: > Hello, > For some reason, no matter what i do, i just can't seem to get the go path > to work. > My tree(not entirely sure what it is): > -documents > - golang >- src >

[go-nuts] Setting up GOPATH

2017-03-17 Thread samgusaapp1993
Hello, For some reason, no matter what i do, i just can't seem to get the go path to work. My tree(not entirely sure what it is): -documents - golang - src - hello1 hello1 is where i have my code when ever i try and do go

[go-nuts] [ANN] Go client for Chrome devtools

2017-03-17 Thread Raffaele Sena
Now that headless support for Chrome is becoming available I decided I am fed-up trying to deal with phantomjs and related problems. And because I love Go and didn't see an available client, I decided to build my own: https://github.com/raff/godet Still in the early stages (a week old ?), but

Re: [go-nuts] Re: [ANN] fsq 1.4.0 released

2017-03-17 Thread Matt Harden
It's common to use go get to download programs as well, for instance goimports. On Sun, Mar 12, 2017, 21:25 wrote: > Thanks for the input! By 'checking', I assume you mean check y.go into the > git repository. I realize the motivation for this (go get), but since > parser.y

[go-nuts] Re: golint if/else stmt and early returns

2017-03-17 Thread jmontgomery
While there may be better ways to express what this logic, for clarity, here is the change that golint is actually suggesting: // Load returns the list of partition found and their properties. func (l *LinuxLoader) Load() ([]*Properties, error) { //- ret := []*Properties{} if temp,

[go-nuts] Guetzli perceptual JPEG encoder for Go

2017-03-17 Thread chaishushan
https://github.com/chai2010/guetzli-go https://github.com/google/guetzli -- 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] Naming tests with underscores

2017-03-17 Thread sethkoehler via golang-nuts
Hi all, In Go, is it acceptable to name tests using underscores for logical grouping of the specific scenario you're testing (e.g., TestFuncName_NilFoo_OneBar), or should one never use underscores for logical grouping (e.g., is TestFuncNameNilFooTwoBars preferred)? I've seen this in a few

Re: [go-nuts] static compile binary with newlib instead of glibc

2017-03-17 Thread Vasiliy Tolstov
2017-03-17 16:59 GMT+03:00 Ian Lance Taylor : > Go can statically link a binary without any C library at all. The > question of using a C library only comes in when cgo to call C code. > I suspect that right now Go programs that use cgo will fail to build > with newlib, because

Re: [go-nuts] static compile binary with newlib instead of glibc

2017-03-17 Thread Ian Lance Taylor
On Fri, Mar 17, 2017 at 2:03 AM, Vasiliy Tolstov wrote: > Does it possible to compile using newlib > (https://sourceware.org/newlib/) for static binary? Does someone try > to do that ? Go can statically link a binary without any C library at all. The question of using a C

Re: [go-nuts] Go Dev Sessions at Google I/O 2017

2017-03-17 Thread Ian Lance Taylor
On Fri, Mar 17, 2017 at 12:01 AM, Nyah Check wrote: > > I don't know for sure how the Google I/O 2017 is going to be like. I just > wish to ask the Go language Devs if there's going to be any sessions at > Google I/O this year specific to Go Development or should we look

Re: [go-nuts] uint type safety in go

2017-03-17 Thread Ian Lance Taylor
On Thu, Mar 16, 2017 at 11:04 PM, Konstantin Khomoutov wrote: > On Tue, 14 Mar 2017 07:12:01 -0700 > Ian Lance Taylor wrote: > >> > I was thinking about the type safety of uint in go, and comparing >> > it for a similar problem. >> > >> > If I

[go-nuts] Live video streaming with Go

2017-03-17 Thread bulat . shamsutdinov
Hello everyone! Can someone please suggest a general direction to look at to implement video streaming server (as simple as possible) in Go? I'm familiar with go, made some web apps. And now there is a need to make a small live video streaming service, that I would love to do in Go. There is

[go-nuts] Re: Need suggestion for bad code of reflection (using FieldByNameFunc and FieldByName inside it)

2017-03-17 Thread nvcnvn
Hi, its me again. I need some time to prepare what I doing. I'm using gorp package for matching struct field and db returned column. After doing pprof I found that a function is particular slow because to many reflect.Type.FieldByName called inside a reflect.Type.FieldByNameFunc So this is what

[go-nuts] static compile binary with newlib instead of glibc

2017-03-17 Thread Vasiliy Tolstov
Does it possible to compile using newlib (https://sourceware.org/newlib/) for static binary? Does someone try to do that ? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Go Dev Sessions at Google I/O 2017

2017-03-17 Thread Nyah Check
Hi Gophers, I don't know for sure how the Google I/O 2017 is going to be like. I just wish to ask the Go language Devs if there's going to be any sessions at Google I/O this year specific to Go Development or should we look forward only to Kubernetes sessions? Thanks, Nyah -- "The heaviest

[go-nuts] usql 0.2.0 release

2017-03-17 Thread Kenneth Shaw
Hi all, Just wanted to announce the release of usql 0.2.0, the universal command-line client for SQL databases. Binaries are available for download here: https://github.com/knq/usql/releases Or, install the usual Go way: go get -u github.com/knq/usql I've significantly fixed how input is

Re: [go-nuts] uint type safety in go

2017-03-17 Thread Konstantin Khomoutov
On Tue, 14 Mar 2017 07:12:01 -0700 Ian Lance Taylor wrote: > > I was thinking about the type safety of uint in go, and comparing > > it for a similar problem. > > > > If I have this go code: > > > > var x uint > > x-- > > > > The value of x is then the maximal value of uint,