Re: [go-nuts] Where can I get the documents explaining arguments of "go build" flags?

2016-07-20 Thread Nan Xiao
Hi Ian & Dave, Thanks very much! On Wednesday, July 20, 2016 at 9:34:17 PM UTC+8, Ian Lance Taylor wrote: > > On Tue, Jul 19, 2016 at 11:54 PM, Dave Cheney > wrote: > > -gcflags are passed to go tool compile, -ldflags are passed to go tool > link. > > And you can see the

[go-nuts] Pure Golang Online Mandelbrot Viewer and MORE

2016-07-20 Thread john
Godelbrot, a Unix-Style Mandelbrot renderer, is nearing 0.0.1 http://godelbrot.functorama.com https://github.com/johnny-morrice/godelbrot UI tested on iPad and modern desktop browsers. Frontend is GopherJS, rendering occurs on server side. Why? Read on. The idea for 0.0.1 is to lay out a

Re: [go-nuts] Re: [ANN] UniDoc PDF Toolkit for golang

2016-07-20 Thread kristian
I agree with this. Go needs a pdf library that is apache, mit or bsd licensed. For a small commercial service where we don't want to share our own source code, AGPL prohibits use and the commercial license is probably not going to be affordable to a low-margin internet startup. It's weird

[go-nuts] Sequence-based Go-native audio mixer for music apps

2016-07-20 Thread Charney Kaye
I've spent a lot of the year working on this: https://github.com/go-mix/mix And now I'm especially looking for help implementing https://github.com/go-mix/mix/issues/56 "Audio time-scale/pitch modification" >From https://en.wikipedia.org/wiki/Audio_time-scale/pitch_modification Time

[go-nuts] Re: Conditionally set go template variables

2016-07-20 Thread bep
No. See https://github.com/golang/go/issues/10608 In Hugo I built a hackish workaround, see http://gohugo.io/extras/scratch/ bep onsdag 20. juli 2016 20.56.47 UTC+2 skrev Tong Sun følgende: > > How to conditionally set go template variables? > > I want the output of the following code >

[go-nuts] Conditionally set go template variables

2016-07-20 Thread Tong Sun
How to conditionally set go template variables? I want the output of the following code https://play.golang.org/p/6e14hS2u1r { sweaters := Inventory{"", 17} tmpl, err := template.New("test"). Parse(`{{$material := "something"}}{{if .Material}} {{$material := .Material}} {{end}}` +

Re: [go-nuts] goimports has been updated

2016-07-20 Thread Nathan Fisher
+1 to this. Would a vendor folder make sense at the same level as the src folder? Make it an override able default. I guess it doesn't address a monorepo approach though or the collocation of generated files like client/server stubs for protobuf/thrift/etc. On Fri, 15 Jul 2016 at 22:30, Dave

Re: [go-nuts] Streaming deflate - can't reliably read chunks as they arrive instead of the entire stream

2016-07-20 Thread Adam Keeton
You're right. It wouldn't have worked without the 0x. However, the test data was being dumped from an existing codebase handling websockets that was already appending that to each message. For reference (and since other people have asked me for it), here's the entire sample code with a

Re: [go-nuts] Streaming deflate - can't reliably read chunks as they arrive instead of the entire stream

2016-07-20 Thread joetsai via golang-nuts
> > // Unsplit into a single contiguous stream > for _, msg := range messages { > // msg in this case is a single websockets message > compData.Write(msg) > } > decompressed, err := ioutil.ReadAll(deflater) > fmt.Printf("Err: %v. Decompressed:\n%s\n\n", err, >

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-20 Thread Michael Jones
Final version: https://play.golang.org/p/nb-KHcw9vS From: Michael Jones Date: Wednesday, July 20, 2016 at 1:50 AM To: EdgarAlejandro Vintimilla , golang-nuts Cc: Subject: Re: [go-nuts] Re:

[go-nuts] goimports no longer builds on go 1.4.2

2016-07-20 Thread Jonathan Lawlor
Obviously 1.4.2 is quite out of date, but I thought it might be useful to point out that the change https://go-review.googlesource.com/#/c/25001/ added an import to runtime/trace, which is not a part of the 1.4.2 library, so go get golang.org/x/tools/cmd/goimports fails. Because goimports is

Re: [go-nuts] Where can I get the documents explaining arguments of "go build" flags?

2016-07-20 Thread Ian Lance Taylor
On Tue, Jul 19, 2016 at 11:54 PM, Dave Cheney wrote: > -gcflags are passed to go tool compile, -ldflags are passed to go tool link. And you can see the docs for those at https://golang.org/cmd/compile and https://golang.org/cmd/link . Ian -- You received this message because

Re: [go-nuts] Re: Go is for everyone

2016-07-20 Thread Nick Sarbicki
I'm brand new to go (started on Saturday, haven't made my mind up yet) and have come over from python. I also teach kids to code (python) so thought I'd give my two cents. Firstly, compared to languages like C, go is easy to learn, compared to languages like JavaScript and python, it isn't. In

[go-nuts] Re: Go is for everyone

2016-07-20 Thread Egon
On Wednesday, 20 July 2016 12:40:01 UTC+3, Simon Ritchie wrote: > > I taught C to second year undergraduates back in the 1990s. By this time, > they had done some COBOL (those were the days), Pascal and assembler. Two > things they had great difficulty with were pointers and multithreading.

[go-nuts] Re: Go is for everyone

2016-07-20 Thread Simon Ritchie
I taught C to second year undergraduates back in the 1990s. By this time, they had done some COBOL (those were the days), Pascal and assembler. Two things they had great difficulty with were pointers and multithreading. Multithreading is not such an issue because you can avoid it while they

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-20 Thread Michael Jones
Glad it is now working for you! By the way, the length of your sample data packet is very nice. That number, 153, is the smallest non trivial (length in digits > 1) base ten number equal to the sum of the Nth powers of its N digits. 153 == 1**3 + 5**3 + 3**3 = 1 + 125 + 27 == 153. There are

[go-nuts] Re: Go is for everyone

2016-07-20 Thread Egon
Just realized one very important point, that I should have highlighted: In the initial Level 0 and Level 1, helping and googling must be very controlled. The important part is teaching the process of solving problems and writing code. While teaching, if there's an obvious syntax error, you

[go-nuts] Re: Go is for everyone

2016-07-20 Thread Egon
So far my research, and small scale experiments (mostly one-on-one teaching), on this topic has lead me to these points. I separated these into levels to make it easier to understand, however when teaching to some degree they can be mixed. *Level 0* These I consider fundamental, either you

[go-nuts] Connection pooling with xorm and go-mysql

2016-07-20 Thread DM
Just cross-posting this from stackoverflow and github :- I am using xorm 0.4.3 with go-mysql . We are on Golang 1.4. We

[go-nuts] Different result in go1.6.3 and 1.7rc2

2016-07-20 Thread Runix
I use the library github.com/jmckaskill/gokerb/khttp in its code (short code): package main import ( "log" "net" ) func main() { cname, addrs, err := net.LookupSRV("kerberos", "udp", "DOMAIN.LOCAL") log.Printf("cname: %#v\n\naddrs: %#v\n---\nerr: %#v", cname, addrs,

[go-nuts] Where can I get the documents explaining arguments of "go build" flags?

2016-07-20 Thread Dave Cheney
-gcflags are passed to go tool compile, -ldflags are passed to go tool link. -- 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