[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 penal

[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] 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 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 n

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 have this go code: >> > >> > var x uint >> > x-- >> >

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 forward > only to Kubernet

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 library only comes in w

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 the runtime/cgo pac

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

2017-03-17 Thread jimmy frasche
There was also some talk in the math/bits proposal thread https://github.com/golang/go/issues/18616 about creating a math/checked library but to my knowledge no one's opened a proposal for that yet On Fri, Mar 17, 2017 at 6:49 AM, Ian Lance Taylor wrote: > On Thu, Mar 16, 2017 at 11:04 PM, Konsta

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

2017-03-17 Thread 'simon place' via golang-nuts
what i was trying to say was that you don't HAVE to have the result of an operator the same built-in type as the operatees, and that that might be useful. it was also intended to show that they are more complex than usually understood. hence using the big type. obviously uint's don't fit in in

[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 pla

[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 golang-nuts+unsubscr...@googlegroups.com.

[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, er

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 contains the actual c

[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 i

[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 inst

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 >- hello1 > hell