FAQ

Search Discussions

437 discussions - 3,300 posts

  • Is there any progress on multidimensional arrays for Go? Not arrays of arrays, but real multidimensional arrays and slices as part of the language. This has been discussed in the number-crunching ...
    John NagleJohn Nagle
    Aug 27, 2013 at 4:38 am
    Sep 10, 2013 at 7:38 pm
  • Hi, don't you find writing a minimum of four lines to call a function... "ugly", both to read and write? I know, I think I'm entering a warzone, I may get cursed, despised, but anyway, I'll try to ...
    FranciscoFrancisco
    Aug 4, 2013 at 6:33 pm
    Aug 8, 2013 at 11:55 pm
  • Recently, I found myself wanting to be able to inspect a sync.Mutex to find out if it was locked without actually blocking. Since this isn't possible without using unsafe, I came up with a ...
    Joshua Liebow-FeeserJoshua Liebow-Feeser
    Aug 12, 2013 at 3:23 am
    Aug 14, 2013 at 3:57 am
  • I'm currently trying to break the 64511 concurrent tcp sessions barrier in my GO application. I have optimized my kernel for high tcp concurrency as suggested by Richard Jones on his blog back in ...
    Paul van BrouwershavenPaul van Brouwershaven
    Aug 16, 2013 at 10:45 am
    Aug 21, 2013 at 9:47 am
  • Executive overview: Repeatedly creating and destroying maps leaks memory over time. Depending on the OS settings either a whole lot of memory will be occupied or the program eventually crashes. The ...
    Marco PeereboomMarco Peereboom
    Aug 28, 2013 at 5:14 pm
    Sep 2, 2013 at 2:45 pm
  • Based on some of the conversations here on the mailing list, on IRC, and with some coworkers I've been musing about taking a shot at designing an os/clock package. I don't have any serious designs ...
    Kyle LemonsKyle Lemons
    Aug 22, 2013 at 2:53 am
    Nov 21, 2013 at 8:33 am
  • I noticed there's no support in Go for a monotonic clock. If you're not familiar, this exists as a C call: http://linux.die.net/man/3/clock_gettime (see *CLOCK_MONOTONIC*) I'm running on a system ...
    BeatgammitBeatgammit
    Aug 20, 2013 at 1:24 am
    Sep 19, 2013 at 7:17 pm
  • http://golang.org/ref/spec#Length_and_capacity Call; Argument type; Result cap(s), len(s); [n]T, *[n]T; array length (== n) -j -- You received this message because you are subscribed to the Google ...
    Jan MerclJan Mercl
    Aug 8, 2013 at 10:04 am
    Aug 13, 2013 at 2:07 am
  • This issue has been discussed before, both on golang-nuts and golang-dev, but I bring it up because in a recent codereview[1] I see two conflicting views on the interpretation of the case and I don't ...
    Dan KortschakDan Kortschak
    Aug 19, 2013 at 3:33 am
    Aug 27, 2013 at 1:14 am
  • What is the recommended way to organize the source tree of a project written in several programming languages (for example Go and Python)? Ideally, we would want to keep everything in the same git ...
    Nicolas GrillyNicolas Grilly
    Aug 15, 2013 at 3:46 am
    Jan 12, 2014 at 5:12 am
  • I'm building rfb client/server packge, all works fine, but i can't handle one type of message to create rfb proxy. I'm already have function that reads FrameBufferUpdate message from rfb server, not ...
    Vasiliy TolstovVasiliy Tolstov
    Aug 20, 2013 at 2:47 pm
    Aug 23, 2013 at 9:36 am
  • There is something that's bothering be lately. It's people giving advice like this: "You should only use channels." and/or "Mutexes are extremely difficult to get right." They justify their reasoning ...
    Luke ScottLuke Scott
    Aug 12, 2013 at 7:55 pm
    Aug 15, 2013 at 4:05 pm
  • Is there a better date parsing in go ? Example 01/02/2013 can be "d/m/Y" or "m/d/Y" depending on the location The current time.Parse does not offer this flexibility. Is there any alternative to parse ...
    Oleku KonkoOleku Konko
    Aug 5, 2013 at 1:08 pm
    Aug 9, 2013 at 11:07 am
  • I'm pretty sure I get pointers in other languages like C and Objective C, but I'm feeling a bit lost and confused in Go. I'm hoping someone can straighten me out. When I see methods defined on a ...
    Pico303Pico303
    Aug 28, 2013 at 1:03 am
    Nov 13, 2013 at 2:05 pm
  • I am using templates for declaring CLI commands with the optional variables being supplied for runtime changes of the command for variability across environments. I noticed that if a template ...
    BB
    Aug 28, 2013 at 12:54 pm
    Aug 30, 2013 at 2:36 am
  • QQ. Please answer without experimentation; the purpose of this question is to see what people actually expect or know, and not what they can figure out by trying. We know that an empty slice and a ...
    Thomas Bushnell, BSGThomas Bushnell, BSG
    Aug 27, 2013 at 7:46 pm
    Aug 27, 2013 at 11:54 pm
  • Hi all. I have this code here: http://play.golang.org/p/_sUelH69s6 Any improvements are welcome. Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" ...
    PublxpPublxp
    Aug 23, 2013 at 8:08 pm
    Aug 27, 2013 at 4:51 pm
  • Let's say I am reading a file, one line at a time, of some unknown length. I want to put these items into a collection. I have been using list.List when I don't know the length of my collection ahead ...
    William KennedyWilliam Kennedy
    Aug 24, 2013 at 5:44 pm
    Aug 26, 2013 at 2:03 pm
  • Hi everyone, Recently I ran into a problem about go GC. Generally speaking, my job is generating a new slice from a existing map on every second, and assign it to a global variable. Here's my code ...
    Wu JianWu Jian
    Aug 9, 2013 at 8:23 am
    Aug 14, 2013 at 3:32 am
  • I was tired of using the gdb command-line client for simple debugging sessions. I heard about the gdb/mi (Machine Interface). So, I wrote a front-end library in Go and a js/html UI that runs in your ...
    Chris McGeeChris McGee
    Aug 29, 2013 at 11:36 pm
    Sep 6, 2013 at 9:29 pm
  • I have installed go (using msi) on my windows 7 laptop. When I run hello.go, I get this error? Please help % go run hello.go hello.go:3:8: cannot find package "fmt" in any of ...
    Michael J SilverstriMichael J Silverstri
    Aug 22, 2013 at 1:32 am
    Aug 23, 2013 at 3:56 am
  • Hello, I am sorry for bringing this topic again, but I really need to clear the things up.. First let me introduce my use case: I have a serial interface, which communicate with the device. The go ...
    Drago IvanovDrago Ivanov
    Aug 31, 2013 at 9:19 am
    Sep 2, 2013 at 11:53 am
  • I have an idea I'd like to explain here to see whether you may find it useful or not. Imagine we had content addressed indexes for files, for any kind of file, but especially for go executables. The ...
    JosvazgJosvazg
    Aug 25, 2013 at 10:21 am
    Aug 28, 2013 at 9:46 am
  • I noticed a big performance hit when converting a Java program that uses int[] arrays to golang. Below is code that accesses two 100000 element slices of int32. It runs in 17.5 seconds. The same code ...
    Dean SchulzeDean Schulze
    Aug 20, 2013 at 11:07 pm
    Aug 23, 2013 at 5:53 am
  • Hi, I'm working on an application that deals with some data that cannot ever be written to a pagefile by the os without completely negating the entire purpose of the application. I'm curious if go ...
    KylevebKyleveb
    Aug 14, 2013 at 3:28 am
    Aug 16, 2013 at 11:43 pm
  • If I just take one piece of code out of context, many people may feel surprised by this: *v := v* // create a new 'v'. This is an odd example to resolve issue when closures shares the same variable ...
    ChrisLuChrisLu
    Aug 4, 2013 at 6:32 pm
    Aug 8, 2013 at 2:42 pm
  • I think taking address of a string literal is some kind of "type transform",a syntactic sugar. Now, we need follow code to return a *string func f1()*string{ tmp:="a" return &tmp } If golang support ...
    Bronze manBronze man
    Aug 5, 2013 at 2:47 am
    Aug 5, 2013 at 7:12 am
  • I recently wrote a program that uses a genetic algorithm to determine the most ergonomic layout of a keyboard (a rather esoteric type of keyboard that I am working on). I originally wrote the program ...
    TR NSTR NS
    Aug 25, 2013 at 10:25 pm
    Sep 19, 2014 at 11:24 pm
  • Does golang have an equivalent of bigdecimal (which is useful in finance applications) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe ...
    WillWill
    Aug 14, 2013 at 3:10 pm
    Nov 3, 2014 at 6:37 am
  • Is there anyway one can embed chrome in a golang application? Why ? - We have existing application what works well on chrome using websockets and there is no need reinventing the wheel but the ...
    Oleku KonkoOleku Konko
    Aug 9, 2013 at 10:44 am
    Aug 17, 2013 at 7:09 pm
  • Hi, We've just released Go version 1.1.2. It includes several fixes to the compiler and runtime. See the change history for details: http://golang.org/s/go1.1.2-changes You can download binary and ...
    Andrew GerrandAndrew Gerrand
    Aug 13, 2013 at 6:49 am
    Aug 14, 2013 at 3:58 am
  • Hi gophers, Switching between Go and Python I sometimes catch myself at hungering for writing Go code in pythonic style. Nevertheless things like that may have appeared on the mailing list before, ...
    Pavel KorotkovPavel Korotkov
    Aug 25, 2013 at 10:13 pm
    Aug 28, 2013 at 7:57 pm
  • Hey guys, I was just wondering on why do we need goto statement Again!. All my school life I learnt (rather was taught) that goto leads to a lot of unstructured code and a strict No-no especially ...
    Rahul RRahul R
    Aug 8, 2013 at 6:18 pm
    Aug 12, 2013 at 12:41 am
  • Hi, I've heard Go 1.2 (CGO) supports C++ now... Is there any example/doc on how to link a C++ library the way? Cheers. Dorival -- You received this message because you are subscribed to the Google ...
    Dorival PedrosoDorival Pedroso
    Aug 26, 2013 at 4:37 am
    Dec 2, 2013 at 3:10 am
  • Is it possible to have a single go routine handle multiple connections similar to how an epoll run loop would work. Thanks, Rajiv -- You received this message because you are subscribed to the Google ...
    Rajiv KurianRajiv Kurian
    Aug 30, 2013 at 9:01 pm
    Sep 2, 2013 at 6:16 pm
  • Hi Folks, I am still trying to get a grip on the correct usage of Cmd.StdinPipe. I have looked at several examples, which work well as far as they go, but I haven't been able to find any examples of ...
    Daryl WilliamsDaryl Williams
    Aug 29, 2013 at 6:54 pm
    Aug 29, 2013 at 11:22 pm
  • Assuming we're in $GOPATH/src/geochat geocoding.go ------------------ package geochat func SomeFunction() { } geocoding_test.go ------------------------ package geochat import "testing" func ...
    Fumin WangFumin Wang
    Aug 28, 2013 at 1:17 pm
    Aug 28, 2013 at 4:21 pm
  • Hi Everyone, I am writing a file server. Each 3 seconds We will check the status of the server: LastTime := 0 go func() { //check status log.Println("LastTime:", LastTime) log.Println("Now:", ...
    Hieu HcmusHieu Hcmus
    Aug 22, 2013 at 3:01 am
    Aug 23, 2013 at 5:45 am
  • Hey. I cannot figure out how would I go about calling a specific win32 function from within Go. Namely: http://msdn.microsoft.com/en-us/library/ms679347%28VS.85%29.aspx I must feed it with such ...
    KamacKamac
    Aug 22, 2013 at 8:05 am
    Aug 22, 2013 at 10:56 am
  • Hi all, About a year ago there was some work done on lock contention profiling (see here <https://codereview.appspot.com/6443115/ ). Did this get to a usable state, and if yes, how can I use it? The ...
    Péter SzilágyiPéter Szilágyi
    Aug 1, 2013 at 2:58 pm
    Aug 11, 2013 at 3:26 pm
  • I think there should be some function like func SubStr(startIndex int, endIndex int) string why there is no such a function ? -- You received this message because you are subscribed to the Google ...
    Allan XuAllan Xu
    Aug 1, 2013 at 7:54 am
    Aug 4, 2013 at 10:04 pm
  • New to GO, I am reading in a json from post, I tried desperately to try to use a dynamic map to interface to deal with the uncertainty of whether it is a json array or single object, to no luck, so ...
    Tobias ContrerasTobias Contreras
    Aug 6, 2013 at 5:09 am
    Aug 14, 2013 at 4:36 am
  • Hi Everyone, I am writing a RESTful JSON web service. When encoding maps I ran into a behaviour, which I thought to be a bug and I submitted an issue ...
    Jan HalfarJan Halfar
    Aug 26, 2013 at 2:55 pm
    Aug 26, 2013 at 6:19 pm
  • Given this example: http://play.golang.org/p/Iu1e6bzudC what is the difference (if any) between the definitions of variables "foo" and "bar"? Luke -- You received this message because you are ...
    Luke MauldinLuke Mauldin
    Aug 19, 2013 at 1:50 pm
    Aug 22, 2013 at 6:22 pm
  • All, I have a question on the sort.Interface example. I think the example does a great job of showing how to easily sort a slice by differing criteria and I have implemented it in my code. However, I ...
    Luke MauldinLuke Mauldin
    Aug 26, 2013 at 8:01 pm
    Aug 27, 2013 at 7:29 pm
  • Hi hope you are all going well. Far be it from me to ask a Go group if Go would be successful. I thought i would ask if any of you are able to make any money or a living from Go at the moment? ...
    Sayth RenshawSayth Renshaw
    Aug 27, 2013 at 1:29 am
    Aug 27, 2013 at 1:51 pm
  • I disagree with Russ about the invoked reason to not implement "negative". I understand the fact that optimisation is a priority, but while there is probably no possibility to get result in O(n) time ...
    Metal3dMetal3d
    Aug 19, 2013 at 5:19 pm
    Aug 20, 2013 at 5:53 pm
  • Mue, When I try to click on the article a 404 error is present. Is your server down? Greg -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To ...
    Grehm87Grehm87
    Aug 6, 2013 at 5:09 am
    Aug 12, 2013 at 3:45 am
  • Dear list, I'm trying to use google-api-go-client for batch upload files to Google Drive. When reading the example code I found that in function openUrl() it calls up external browser. Is this the ...
    Andy W. SongAndy W. Song
    Aug 30, 2013 at 8:12 am
    Oct 21, 2013 at 1:46 pm
  • Ok, Here's what I'm wrestling with; I'm trying to make a BNF for Go return parameters, and I'm unsure of if the case below is valid go syntax and so if it ever can occur in code: *func* Name() name1, ...
    Rolf LampaRolf Lampa
    Aug 29, 2013 at 3:19 am
    Aug 29, 2013 at 8:53 pm
Group Navigation
period‹ prev | Aug 2013 | next ›
Group Overview
groupgolang-nuts @
categoriesgo
discussions437
posts3,300
users562
websitegolang.org

562 users for August 2013

Kyle Lemons: 145 posts Dan Kortschak: 99 posts Dmitry Vyukov: 92 posts Dave Cheney: 80 posts Jan Mercl: 76 posts Ian Lance Taylor: 69 posts Carlos Castillo: 57 posts Atkaaz: 53 posts Jesse McNelis: 51 posts Oleku Konko: 51 posts Rob Pike: 49 posts Kevin Gillette: 47 posts Andrey mirtchovski: 42 posts Brad Fitzpatrick: 42 posts Luke Mauldin: 37 posts Rémy Oudompheng: 30 posts Shivakumar GN: 30 posts Michael Jones: 29 posts Peter Kleiweg: 26 posts Roger peppe: 26 posts
show more