Search Discussions
-
I would like some clarification on io.Reader semantics wrt EOF. I have an io.Reader implementation that will return a io.EOF in some cases where the []byte parameter is zero length. It's not clear to ...
Dan Kortschak
Mar 17, 2015 at 1:16 am
Mar 17, 2015 at 10:29 pm -
Howdy, To learn go, I have started to port the go core to compile on top of gccgo without using an existing go implementation. Some progress is being made. The goal in the end is to be able to ...
James Michael Dupont
Mar 1, 2015 at 10:17 am
Mar 14, 2015 at 1:25 am -
Hello all! What is the group opinion on adding functionality to `go get` so that it reads project requirements from a file (very much akin to how python-pip does with their requirements.txt)? Is this ...
Juan Sanchez
Mar 24, 2015 at 5:47 pm
Mar 28, 2015 at 7:26 pm -
Was trying to figure out how 0 length arrays and slices behaved in Golang. Came up with two snippets of code (I found the code somewhere and modified it a bit to work with this) ...
Anmol Sethi
Mar 23, 2015 at 5:24 pm
Mar 24, 2015 at 8:20 am -
I was just wondering what sorts of programs people used to create their go programs. Do you use vim? Sublime Text? ed? Any specific plugins? Feel free to post screenshots if it looks interesting ...
John Klika
Mar 26, 2015 at 8:30 pm
Apr 4, 2015 at 9:48 pm -
Hi all, When I compile this simple program and run it under wine (1.7, ubuntu 14.04) it hangs indefinitely: package main import ( "fmt" "time" ) func main() { fmt.Println("before") ...
Leonbogaert
Mar 22, 2015 at 11:00 pm
Mar 26, 2015 at 9:51 pm -
Hello nuts! In http://play.golang.org/p/OuvJp26sSv I noticed something strange. The specs say "At package level, initialization dependencies <https://golang.org/ref/spec#Package_initialization ...
Martin Bruse
Mar 25, 2015 at 7:00 am
Mar 26, 2015 at 9:59 am -
Hello community! This may be a trivial question but I actually want to know your opinion about this. We're three experienced developers starting to work on a new project. The aim is to build a ...
Rbarreiro
Mar 30, 2015 at 4:16 pm
Mar 31, 2015 at 5:46 pm -
Hey, I try to write a YQL function, and my env is golang 1.4.2 and windows 2012r2. func YQLhtml(link, xpath string) (map[string]interface{}, error) { ... err = json.Unmarshal(raw, yr) ... return ...
Jianyang Zhao
Mar 17, 2015 at 8:22 am
Mar 19, 2015 at 4:33 am -
Is it possible, using go's reflection, to traverse a map that has a struct as its value and then update a value in there? If you look at this example: http://play.golang.org/p/RRoJMCflZl you can see ...
Duglin
Mar 12, 2015 at 11:33 pm
Mar 13, 2015 at 11:51 pm -
I know you guys are cringing at the title. I've read a bunch of posts on Go and function overloading, so before I ask the question, please let me say: 1) I love Go and have used if for several year ...
Warren Bare
Mar 11, 2015 at 6:35 pm
Mar 12, 2015 at 4:49 pm -
I'm talking about non-nil interfaces containing nil-values not being nil according to equality. http://play.golang.org/p/Uyw5u1Udc5 (I undestand the cause of this; not what I'm asking) It would seem ...
Thwd
Mar 19, 2015 at 11:08 am
Mar 20, 2015 at 2:31 pm -
Hello, I have to make the Fizzbuzz challenge. Now I wonder if I can do something like this switch number { case number % 3 == 0 : fmt.Printf('buzz') case number % 5 == 0 : fmt .Printf('fizz) case ...
Roelof Wobben
Mar 3, 2015 at 7:32 pm
Mar 4, 2015 at 3:21 pm -
Hi, I just completed the translation of the Go Tour in Italian and I have deployed it at this url: http://go-tour-ita.appspot.com/ . Unfortunately, the app-id "go-tour-*it*" is not available, so I ...
Alessandro Baffa
Mar 6, 2015 at 12:02 am
Mar 9, 2015 at 3:56 am -
I was looking at the reflect.Value source yesterday and noticed two TODOs to deprecate methods to get backing value addresses. http://golang.org/src/reflect/value.go?s=36337:36355#L1185 ...
Dan Kortschak
Mar 24, 2015 at 11:01 pm
Mar 25, 2015 at 10:00 pm -
It seems that when trying to use a '+=' to increment a variable in a closure, '+=' isn't atomic. I don't see why it shouldn't be. A snippet: ========================== var waitGroup sync.WaitGroup ...
Jeffrey 'jf' Lim
Mar 17, 2015 at 9:10 am
Mar 17, 2015 at 4:17 pm -
I struggled compile gcc 5.0.0 and hope gccgo will support refection API on a MIPS CPU. finally the compilation is success and i got gccgo 5.0.0 working. but, the reflection and closure is not working ...
Yongfeng liu
Mar 11, 2015 at 6:55 am
Mar 13, 2015 at 2:56 am -
Hello! I am trying to access an API served by nginx (with a self-signed SSL cert) that requires client certificate authentication, and while I can successfully auth with curl, I unable to accomplish ...
Dots Connected
Mar 17, 2015 at 5:19 pm
Apr 1, 2015 at 10:18 pm -
13
[go-nuts] object is [windows amd64 go1.4.2] expected [windows amd64 go1.4.2 X:precisestack] error
Hello gophers, I'm trying to build a go program which is linked to a C module. This is the standard procedure from SWIG 3.0 documentation but I am getting following error message near the final ...PARK, Kyung-Kook
Mar 30, 2015 at 8:26 am
Mar 31, 2015 at 2:45 am -
Hi Gophers, I have a suggestion to make: Consider the following: package main import "fmt" import "strconv" func main() { var mynumber float64 = 3.00 var mystring string ="The amount is " ...
Will
Mar 26, 2015 at 12:40 pm
Mar 26, 2015 at 8:20 pm -
Hi, I have a base type/interface with a func() that, via reflection, will detect its fields. However, when I subclass it and extend it with new fields that same func() will never detect the new ...
Duglin
Mar 15, 2015 at 1:43 am
Mar 15, 2015 at 11:02 pm -
Thanks to Dave for posting this link to hackernews: http://www.amazon.com/Programming-Language-Addison-Wesley-Professional-Computing/dp/0134190440/ Enjoy, Raj -- You received this message because you ...
Rajanikanth Jammalamadaka
Mar 5, 2015 at 1:17 pm
Mar 6, 2015 at 1:33 am -
Hi all, I'm running on tip, but this behaviour happens on 1.4.2 as well. I have a long-running server program, and it makes (and then destroys) a lot of objects and then settles down. While I'm ...
Peter Vessenes
Mar 20, 2015 at 7:32 pm
Mar 24, 2015 at 5:56 pm -
12
[go-nuts] CGO: How to have a go callback exported and be used by in several packages through CGO?
Is there a way to be able to use an go callback by CGO from multiple packages? I have one main app, that imports several packages, each of those packages may need to interface with C, and of C call a ...Oblita
Mar 15, 2015 at 1:31 am
Mar 22, 2015 at 8:03 pm -
what is the general stance of go with respect to make? while some might argue that the build and install tools might be smarter, i would be happy enough with an equivalent of gcc's "-M" flag, which ...
Andrew
Mar 10, 2015 at 10:54 pm
Mar 17, 2015 at 5:08 pm -
As far as I know there is no way to pass the []byte of a certificate and private key to ListenAndServeTLS so that plaintext cert/key is not stored on hard disk. Could someone verify this is the case ...
Alex Howard
Mar 12, 2015 at 10:59 am
Mar 13, 2015 at 11:15 am -
I have written a web application in golang which basically extracts the url query parameters, checks if the response is cached in redis for that particular request and returns a Json response ...
Maco Anshu
Mar 31, 2015 at 11:29 pm
Apr 1, 2015 at 6:25 am -
TL;DR: termui <https://github.com/gizak/termui Hi guys! I was wondering why seems like we don't have a dashboard-like command line ui, so I made some commits and just released a Go command line ...
Gizak
Mar 10, 2015 at 9:11 pm
Mar 25, 2015 at 10:14 pm -
package main import( "encoding/json" "fmt" ) type Test struct { Data string } func main() { res, := json.Marshal(Test{" "}) fmt.Println(string(res[:])) } Produces: {"Data":"\u003e"} However, I'd like ...
Yutong Zhao
Mar 9, 2015 at 3:30 pm
Mar 19, 2015 at 8:09 pm -
Hello, I found this library on reddit: https://github.com/google/gxui/. It's in the Google Github org, and it's license lists the copyright belonging to "The Go Authors". I wasn't able to find much ...
Craig Weber
Mar 17, 2015 at 3:46 pm
Mar 18, 2015 at 12:31 pm -
The code is here: http://play.golang.org/p/EpFBGEDP2K func b(n int) int { if n == 0 { return n } return n + a(n - 1) } var a = func(n int) int { return b(n) } I had thought the above code should ...
David DENG
Mar 17, 2015 at 9:45 am
Mar 17, 2015 at 7:31 pm -
Dear Team, Good Day. I want to know is it possible achieve it in GO . I have functions Test1 , Test2 , Test3 .... in a package DEMO. I would like to trigger those functions at run time like below ...
Duggineni hari babu
Mar 13, 2015 at 8:36 am
Mar 14, 2015 at 1:11 am -
Hi Gopers. I need some kind of lock, to lock a routine base on a variable (for example user id) for example I want to lock the update for user 1 data, to prevent over write, but at the same time, I ...
Forud A
Mar 10, 2015 at 11:58 am
Mar 10, 2015 at 4:54 pm -
Are there any good golang code convertors? I'd like to convert c# to golang, but if there isn't a convertor I'll first use another tool to get to java and then from there to golang. Thanks! -- You ...
AndreR
Mar 3, 2015 at 5:45 pm
Mar 7, 2015 at 3:06 pm -
Hi all, If you need simple and fast RPC library optimized for high load, then check it out - https://github.com/valyala/gorpc . The library allowed reducing network bandwidth from 300Mbit/s to ...
Aliaksandr Valialkin
Mar 1, 2015 at 2:49 am
Mar 4, 2015 at 9:33 pm -
A strange issue has just confused me and a fellow developer for some time. It appears that if 2 field tags are separated by a tab character, the second one is completely ignored. See, for example ...
Sam Salisbury
Mar 2, 2015 at 12:27 pm
Mar 2, 2015 at 11:35 pm -
I work for an e-commerce company, and we, like many gophers before us, needed a decimal library for proper accounting. When dealing with money, rounding errors are undesirable. Unfortunately, ...
Vadim
Mar 5, 2015 at 7:57 pm
Mar 17, 2015 at 5:57 am -
Hi all, I am new to go, writing an application to serve EEG data over http. I am looking for some signal processing filters. Does such a package exist? If not, is anyone interested in working on such ...
Kjs
Mar 7, 2015 at 9:17 pm
Mar 14, 2015 at 5:54 pm -
Hi all, Today in https://github.com/valyala/gorpc/pull/1 I discovered that non-blocking select is faster than blocking select by more than 6 times: func makeChans(n int) (bCh chan struct{}, nbCh chan ...
Aliaksandr Valialkin
Mar 5, 2015 at 11:14 am
Mar 13, 2015 at 10:35 am -
So, I’m revisiting a topic first asked about here: https://groups.google.com/forum/#!topic/golang-nuts/lOMvhVkGPXU <https://groups.google.com/forum/#!topic/golang-nuts/lOMvhVkGPXU I have an ...
Garrett D'Amore
Mar 2, 2015 at 7:27 pm
Mar 9, 2015 at 5:02 am -
Let's move this discussion to golang-nuts. If the library author names all their errors like ErrSomeError, that is enough, right? result, err := lib.F() if err == lib.ErrSomeError { // ... } else ...
Caleb Spare
Mar 31, 2015 at 7:39 pm
Apr 1, 2015 at 11:46 pm -
Hi, This baffles me: http://play.golang.org/p/1jfi2YLFum I know of no specification, HTML or XML, that requires lower-casing the first character of an tag. Why is html/template doing this? --- SER -- ...
Sean Russell
Mar 27, 2015 at 9:14 pm
Apr 1, 2015 at 12:39 pm -
In order to implement intrusive interfaces[1] I propose a new parent() built-in that returns the parent of a struct member. It can be statically checked and thus always work as long as the fallowing ...
Shawn Landden
Mar 26, 2015 at 1:33 am
Mar 28, 2015 at 2:27 am -
Hi, Newbie question here: I am new to Golang but have used Ruby and Java for quite some time. One thing I am struggling with that is simple to understand in other languages is how to I use my code ...
Corey Osman
Mar 26, 2015 at 9:26 pm
Mar 26, 2015 at 11:10 pm -
I have this piece of code package main import ( "fmt" ) func Extend(slice []int, element int) []int { n := len(slice) if n == cap(slice) { // Slice is full; must grow. // We double its size and add ...
Anmol Sethi
Mar 23, 2015 at 5:26 am
Mar 23, 2015 at 11:22 am -
Hi golang-nuts, I see that syscall.Dup2 uses Syscall instead of RawSyscall, which I understand to mean that the runtime assumes it cannot block. (Please correct me if I'm wrong.) If I understand ...
Aaron Jacobs
Mar 20, 2015 at 4:01 am
Mar 23, 2015 at 12:13 am -
I'm looking for a Go lib, code snippet or an advice on "calculating" one or more CIDR from two ip addresses. Something that would work similar to the service provided here ...
Victor
Mar 16, 2015 at 2:01 am
Mar 22, 2015 at 4:48 am -
I'm trying to figure out why persistent http connections show up in lsof as established for so long (approximately 90 minutes) after mobile clients have disappeared from the network abruptly. The way ...
Traun Leyden
Mar 18, 2015 at 9:21 pm
Mar 19, 2015 at 8:03 pm -
I built a website using the GoRazor templating engine - https://github.com/sipin/gorazor. It works as fast as the Go code it compiles to, and worked fine, when it was small.. When larger, it gets a ...
Cinnabardk
Mar 14, 2015 at 1:40 pm
Mar 16, 2015 at 3:50 pm -
Hi everybody! I posted this yesterday in the mgo-users group, but since more people read here, I'll give it a try: I'm wondering, what do people use to init database data? I'm speaking of master ...
Daniel Blanco
Mar 12, 2015 at 3:10 pm
Mar 16, 2015 at 2:32 pm
Group Overview
group | golang-nuts |
categories | go |
discussions | 395 |
posts | 2,186 |
users | 581 |
website | golang.org |
581 users for March 2015
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)