Search Discussions
-
Hi. I made a string only version of the powerset function on Rosetta Code <https://rosettacode.org/wiki/Power_set#Go and ran into a bug where a slice input to *append()* [one, two, three, four] seems ...
Oliver Schmid
Jun 18, 2016 at 5:16 pm
Jun 18, 2016 at 5:50 pm -
Hi I've a proto3 file: ====== message Any { } message InsertParams { Any Record = 1; } service myService { rpc Insert (InsertParams) returns (InsertResponse); } ======== where I have an "Insert" API ...
Sankar
Jun 18, 2016 at 4:59 pm
Jun 18, 2016 at 4:59 pm -
Basex - [base62] Youtube like id generator : Introducing EncodeInt and DecodeInt functions to basex library. They basically do exactly the same functionality as Encode and Decode but use raw *big.Int ...
Dinesh Appavoo
Jun 18, 2016 at 7:41 am
Jun 18, 2016 at 7:41 am -
Hi, Here are commands I used to set up gopkg.in/vmihailenco/msgpack.v2 go get -u gopkg.in/vmihailenco/msgpack.v2 cd $GOPATH/src/gopkg.in/vmihailenco/msgpack.v2 go get -u github.com/ugorji/go-msgpack ...
Hiroaki Nakamura
Jun 18, 2016 at 2:01 am
Jun 18, 2016 at 8:20 am -
We have an upstream provider of JSON data which sends integer data types as floating point literals with a "0" decimal part. By default json.Decoder doesn't allow this and fails ...
Jgold
Jun 17, 2016 at 9:37 pm
Jun 17, 2016 at 10:33 pm -
Hi All, I'm trying to use the go/* packages to parse and type check Go source code. I've downloaded github.com/coreos/etcd to test this on, and I'm currently trying it out in the etcdserver ...
Joshua Liebow-Feeser
Jun 17, 2016 at 7:22 pm
Jun 17, 2016 at 9:23 pm -
https://play.golang.org/p/yE7UVXcXm3 The key point here is that all the RHS of the `Cross` function must be evaluated before the LHS is assigned. But I need to have a guarantee that we won't assign ...
Olivier Gagnon
Jun 17, 2016 at 3:51 pm
Jun 17, 2016 at 4:05 pm -
Hello, Could you guys please help me. I can't find how to export method function which belongs to some go-struct to C-code (cgo part) as callback. I know how to export simple function which not ...
Andrey
Jun 17, 2016 at 2:32 pm
Jun 18, 2016 at 9:06 am -
Hi All I am using Go version 1.6.2 and Gomobile (sha +6b7a416 from the tip) and to build an Android library. Our code is mostly networking "encoding/json" "fmt" "log" "math/rand" "net" "sort" "time" ...
Rajiivkanchan
Jun 17, 2016 at 2:32 pm
Jun 17, 2016 at 2:32 pm -
Hi to all, I'm new here and using golang too. I've read some articles and post on Connection Pooling" but I'm still confused. What I'm looking for is a rule of thumb that make me easy to decide when ...
Cydside
Jun 17, 2016 at 2:32 pm
Jun 18, 2016 at 1:47 pm -
Hi guys, Let's say there is something big size string data. To store that data, I want to convert or compress this string. Though I've already tried compress/gzip package. What else how can I do ...
Harry
Jun 17, 2016 at 5:53 am
Jun 17, 2016 at 5:53 am -
I'm running a terabyte-scale (minor compiler changes are necessary to get this to run) genome resequencing simulation at the moment and an interesting question has arisen. The simulation involved ...
Dan Kortschak
Jun 16, 2016 at 11:59 pm
Jun 17, 2016 at 8:02 am -
godoc.org is returning: Error: Server ErrorThe service you requested is not available yet. Please try again in 30 seconds. -- You received this message because you are subscribed to the Google Groups ...
Traun Leyden
Jun 16, 2016 at 11:52 pm
Jun 17, 2016 at 12:08 am -
Buford is a Go library for remote notifications on iOS, macOS, tvOS, and watchOS. It uses the HTTP/2 protocol that Apple has supported since last year. This releases adds a few new fields based on ...
Nathan Youngman
Jun 16, 2016 at 11:24 pm
Jun 16, 2016 at 11:24 pm -
Hello gophers, We have just released go1.7beta2, a beta version of Go 1.7. It is cut from the master branch at the revision tagged go1.7beta2. Please help us by testing your Go programs with the ...
Chris Broadfoot
Jun 16, 2016 at 11:15 pm
Jun 17, 2016 at 7:59 pm -
Hello, Go enables the evaluation of functions using currying over function literals. Every example I've found of this is rather shallow; a "deeper" example I wrote implementing (x = (y = (z = x^2 + ...
Zauberkraut
Jun 16, 2016 at 10:00 pm
Jun 18, 2016 at 3:32 am -
I haven't fully grasped the type inference/promotion/demotion rules yet, particularly with respect to having function arguments & return values with interface types. Here is a distilled example that ...
Ccahoon
Jun 16, 2016 at 8:56 pm
Jun 16, 2016 at 9:12 pm -
Hello golang experts, I am curious how does goroutine scheduler picks what goroutine to run, among several runnable. Does it optimize for fairness in any way? I ran a quick experiment and found out ...
Dmitry Orlov
Jun 16, 2016 at 6:45 pm
Jun 17, 2016 at 7:47 pm -
The server which I am contacting to is written in python and excepts bencoded list. In my existing python client code I do something like this: 'li4456e6:Rakeshi27ee' Server gets back the list by ...
Rakeshhs1
Jun 16, 2016 at 4:30 pm
Jun 16, 2016 at 5:30 pm -
Hi All, Forgive me if I posted in the wrong group, as it could be more of a question related to design patterns rather than to golang itself. *The context* Imagine to create a full portal with users, ...
Romano Panzacchi
Jun 16, 2016 at 3:02 pm
Jun 17, 2016 at 1:33 pm -
Hi, In many software projects I have to get the address family of a net.IP object. I always duplicate the following code: func isIPv4(ip net.IP) bool { return len(ip) == net.IPv4len || (len(ip) 11 && ...
Google
Jun 16, 2016 at 3:02 pm
Jun 17, 2016 at 2:27 pm -
Let's say I have some piece of code like this: type Foo struct { } func (this *Foo) Do() { } If I want to test that method Foo will pass in a certain scenario and fail in another scenario should I ...
Rayland
Jun 16, 2016 at 2:04 pm
Jun 17, 2016 at 1:32 pm -
The data I am trying to marshal contains serialized data. This data is received in http response. It works perfectly when I try in version 1.4.1/ 1.4.2. But when I try this to the latest version 1.6 ...
User123
Jun 16, 2016 at 9:44 am
Jun 17, 2016 at 6:28 pm -
I am trying to run a large number of tcp connects https://play.golang.org/p/lNGWD-q028. However I am getting a lot of i/o timeouts. Is this a know issue, or I am missing something. -- You received ...
Mayank Jha
Jun 16, 2016 at 8:04 am
Jun 16, 2016 at 7:14 pm -
Let me explain with an example, For goquery, most functions are of type "func (s *Selection) Xxx(selector string) *Selection". For e.g., "Find" is: func (s *Selection ...
Tong Sun
Jun 16, 2016 at 4:12 am
Jun 18, 2016 at 12:09 am -
How to remove child nodes in goquery? I'm trying 3 different ways to remove child nodes in my sample code, https://github.com/suntong/kuaizh/blob/master/crawler/kijiji.go as I can't quite figure it ...
Tong Sun
Jun 16, 2016 at 3:39 am
Jun 16, 2016 at 3:39 am -
It seems that it is not well defined what happens when you get an error. Looking at the os.File implementation the returned n value is always zero on error. But isn't it possible that the underlying ...
Jonathan Gaillard
Jun 16, 2016 at 12:43 am
Jun 16, 2016 at 3:51 am -
Hey All, We've recently released support for Golang on our APM platform. You can read our blog post here <https://www.appneta.com/blog/go-long-with-golang/ and check out our repo ...
Jmoore
Jun 15, 2016 at 10:20 pm
Jun 15, 2016 at 10:20 pm -
Under what conditions does a cgo package get recompiled? I am using go-sqlite3 and it appears that the C compiler/linker is run every time I build my project, even though I am not changing any of the ...
Alex Flint
Jun 15, 2016 at 9:54 pm
Jun 16, 2016 at 1:38 pm -
Is there any effort/package/lib that provides diffs on structs with serilization/deserilization methods? I need to store data changes in a db. The db itself (datastore) doesn't provide versions so I ...
Mihai B
Jun 15, 2016 at 8:56 pm
Jun 15, 2016 at 8:56 pm -
Hi guys, How do I assign a variable function of sample scripts are used on the following address? https://github.com/StefanSchroeder/Golang-Regex-Tutorial/blob/master/01-chapter3.markdown How can I ...
ToSuNuS
Jun 15, 2016 at 3:54 pm
Jun 15, 2016 at 5:13 pm -
Late reply, but still trying to figure something out here. What happens if the channel closes? I'm thinking about maintaining a list of channels (one for each websocket client), then sending a ...
Integrii
Jun 15, 2016 at 2:03 pm
Jun 16, 2016 at 4:32 pm -
Hello all, I would like to announce GopherPit [0], a web service to serve and manage go-import and go-source HTML meta tags. [1] That is the base functionality, but it supports custom domains, ...
Janoš Guljaš
Jun 15, 2016 at 2:03 pm
Jun 15, 2016 at 2:03 pm -
Mirror of the Go compiler SSA library - https://github.com/bjwbell/ssa The mirror is automatically updated daily. Any feedback is welcome. I'm unsure on the licensing requirements for mirroring. -- ...
Bjwbell
Jun 15, 2016 at 5:02 am
Jun 16, 2016 at 5:59 pm -
Here is my proposal for generic in go: https://docs.google.com/document/d/1nO7D15c2B3eq2kF62C0yUs_UgpkyPL2zHhMAmlq1l98/edit?usp=sharing Many parts has not been finished, and just initial thoughts. In ...
Xingtao zhao
Jun 15, 2016 at 1:04 am
Jun 16, 2016 at 11:02 am -
Hi golang-nuts! [this is sybil's first public announcement; feedback, discussion, comments or bugs are much appreciated, any and all help welcome!] sybil (v0.0.5) is a free and libre append-only ...
Okay zed
Jun 15, 2016 at 12:49 am
Jun 15, 2016 at 12:49 am -
*nexer* is a simple and easy to use and extend content based network multiplexer (or redirector) made with love and golang. Binaries: https://github.com/diegohce/nexer/releases/latest ...
Diego Cena
Jun 15, 2016 at 12:29 am
Jun 15, 2016 at 2:11 pm -
Hi, I'm trying to understand the reason why does go get download the current arch/os/no build flags (unless specified)? I'm asking this because in the current vendor chat there's a comparison with go ...
Florin Pățan
Jun 14, 2016 at 10:48 pm
Jun 14, 2016 at 10:48 pm -
Is the following code supposed to work? Not sure whether I'm doing something wrong or cgo just doesn't support this style of #defines. I reduced it down to a simple test case, but the actual problem ...
Dragos Harabor
Jun 14, 2016 at 10:18 pm
Jun 14, 2016 at 10:40 pm -
It's my understanding that the type checker considers named types identical only if they're represented by the same pointer. Thus it makes sense for types.Identical and typeutil.Hasher.Hash to return ...
Aurélien Bombo
Jun 14, 2016 at 10:18 pm
Jun 14, 2016 at 10:45 pm -
Hello all - I've been having a hard time getting syscall.Mmap to produce the "right" values. I'm using 1.6.2 and cross-compiling for the ARM/Linux. I'm trying to read from Arm memory at its device ...
Dave Mazzoni
Jun 14, 2016 at 7:52 pm
Jun 14, 2016 at 10:19 pm -
Is this supposed to be legal in Go: var x int32 = 3 fmt.Printf("%d", x & 0xFFFFFFFF)? The language spec just says the bitwise operator "applies to integers only" and "yields a result of the same type ...
Dave MacFarlane
Jun 14, 2016 at 5:16 pm
Jun 16, 2016 at 12:17 am -
jsonmon is a simple but powerful monitoring and alerting system. It has only two types of checks: shell and Web. More details at https://github.com/chillum/jsonmon/wiki Today the version 2.0.11 is ...
Vasily Korytov
Jun 14, 2016 at 5:03 pm
Jun 14, 2016 at 5:03 pm -
I thought to get basename, we should use the official *path.Base* -- https://golang.org/pkg/path/#Base However, I just found out that it is *not working under DOS* -- ...
Tong Sun
Jun 14, 2016 at 4:55 pm
Jun 14, 2016 at 5:30 pm -
I developed an application that displays a icon in status bar to show network speed. I have packaged it to a standard mac app package (ns.app and ns.dmg) using command *codesign* and *appdmg.* The ...
Liudan king
Jun 14, 2016 at 4:30 pm
Jun 14, 2016 at 4:30 pm -
That's interesting but your time or 0.7 seconds on your specified machine isn't very informative: you should at least specify how long the original version of primegen (which is not multithreaded) ...
Gordonbgood
Jun 14, 2016 at 12:31 pm
Jun 18, 2016 at 10:54 am -
Hi guys, I wonder that question. Before execution, it's possible to get query by myself. But I want to get executed query string actually. Is there any way to manage that? Thanks! -- You received ...
Harry
Jun 14, 2016 at 1:18 am
Jun 14, 2016 at 2:04 am -
consider func Foo(a int, b string, x SomeStruct) It would be nice if it was possible to pass in the "don't care" value, a.k.a. "_" as one of the argument, as an alias for the default value of the ...
Oli Gagnon4418
Jun 13, 2016 at 9:42 pm
Jun 13, 2016 at 9:49 pm -
Just finished this project and wanted to post here to post it here, get some feedback, and hopefully it will be useful for someone. GitHub link: https://github.com/beeker1121/goque It implements ...
Conner Hewitt
Jun 13, 2016 at 7:26 pm
Jun 13, 2016 at 7:26 pm -
Hi, We have a container running a Golang 1.6 based app that tries to perform an OAuth request against GitHub. We are using the following "golang.org/x/oauth2" "golang.org/x/oauth2/github" I get the ...
Chris Johnson
Jun 13, 2016 at 7:26 pm
Jun 13, 2016 at 7:55 pm
Group Overview
group | golang-nuts |
categories | go |
discussions | 16,643 |
posts | 105,388 |
users | 7,844 |
website | golang.org |
Top users
Archives
- June 2016 (815)
- May 2016 (1,277)
- April 2016 (1,340)
- March 2016 (1,589)
- February 2016 (1,499)
- January 2016 (1,419)
- December 2015 (1,217)
- November 2015 (1,490)
- October 2015 (1,768)
- September 2015 (2,186)
- August 2015 (2,240)
- July 2015 (2,221)
- June 2015 (2,056)
- May 2015 (1,508)
- April 2015 (2,023)
- March 2015 (2,186)
- February 2015 (2,032)
- January 2015 (2,219)
- December 2014 (2,612)
- November 2014 (1,886)
- October 2014 (2,115)
- September 2014 (2,267)
- August 2014 (2,172)
- July 2014 (2,509)
- June 2014 (337)
- May 2014 (1,260)
- April 2014 (2,795)
- March 2014 (2,914)
- February 2014 (2,640)
- January 2014 (2,720)
- December 2013 (2,487)
- November 2013 (2,527)
- October 2013 (2,610)
- September 2013 (3,038)
- August 2013 (3,302)
- July 2013 (2,235)
- June 2013 (2,929)
- May 2013 (3,816)
- April 2013 (3,080)
- March 2013 (2,963)
- February 2013 (3,401)
- January 2013 (3,865)
- December 2012 (2,603)
- November 2012 (2,493)
- October 2012 (3,246)
- September 2012 (3,469)
- August 2012 (62)