Search Discussions
-
After updating to go 1.6 a simple sort that was working fine in 1.5.3 now causes a panic: runtime error: index out of range. I added some debugging to try can catch it in the act and it seems like go ...
Steven Hartland
Feb 18, 2016 at 3:28 am
Feb 25, 2016 at 10:10 pm -
At yesterday's Go 1.6 release party, an interesting discussion took place: We were talking about Go's type system and I argued that algebraic data types (ADTs) would, in my opinion, be the missing ...
Thwd
Feb 18, 2016 at 10:32 am
Feb 19, 2016 at 3:53 pm -
Hi, Have an odd problem. I am using an "old" sicortex PS072. The version of linux os old and for various reasons I would prefer to not upgrade it. I am using the head node SSP which runs linux ...
Freddyisaac
Feb 6, 2016 at 5:58 pm
Feb 20, 2016 at 1:23 pm -
I made a golang server, it seems it involves memory leak, but "go tool pprof" not showing me what exactly is allocated. top command output: ubuntu@DE1:~$ top -p `pidof pushServer` top - 05:11:27 up ...
ZPL
Feb 29, 2016 at 5:17 am
Feb 29, 2016 at 9:49 am -
Or is the normal cycle of incremental testing for go programs to have to comment out not only the line but entire functions + imports + line? This is insane. -- You received this message because you ...
Christianlott1
Feb 16, 2016 at 9:20 pm
Feb 25, 2016 at 9:46 am -
Hello All, I have been serving a Go web application with Nginx using a reverse proxy. I have seen some online tutorials talk about using http/2 and using Go with https. My question is, should I be ...
Ben Williams
Feb 26, 2016 at 9:42 pm
Feb 28, 2016 at 6:40 pm -
Hi, I've created a benchmark for the template engines mentioned on the awesome-go list. The benchmark consists of two tests: 1. simple "hello world" 2. classic index page with header, footer and ...
Slinso
Feb 8, 2016 at 5:04 pm
Feb 25, 2016 at 3:35 pm -
Let's assume I have code that does something like the pseudo-code below: type S struct { // ... some fields ... } func f() []*S { buf := make([]byte, 10MB) // fill the buffer by making a ...
Tim K
Feb 3, 2016 at 3:56 am
Feb 6, 2016 at 7:25 pm -
Hi, While I understand that Go's language specs is pretty much fixed, I do think that Go's interface could be made more useful. Here are a couple of ideas: Make the interface type behaves like the ...
Henry
Feb 11, 2016 at 4:12 am
Feb 14, 2016 at 9:41 pm -
Hi folks, If you saw my previous post you'll know I'm dealing with a bunch of cgo/SWIGy type stuff. Well, here's the latest installation of the saga! So, my build setup looks like this... go install ...
Mark mellar
Feb 26, 2016 at 5:22 am
Mar 1, 2016 at 7:20 pm -
Hi, I got code like this: type Check struct { Name string `json:"name,omitempty" yaml:"name"` Since string `json:"since,omitempty" yaml:"-"` } var checks []Check var modified string func main() { for ...
Vasily Korytov
Feb 21, 2016 at 6:50 pm
Feb 23, 2016 at 3:33 pm -
Hi, I got a strange nil pointer exception in os/exec.(*Cmd).Start: 1. stack trace when panic: ... (more) First parameter of runtime.getitab is 0x0. 2. It panics every 1-3 days. I cannot make a simple ...
Ikari Shinji Eva
Feb 17, 2016 at 1:28 pm
Mar 6, 2016 at 8:28 am -
Hello everyone, My golang web server is having a problem with Garbage Collection. Usual latency for incoming requests is about 5ms, but during every GC run it increases up to 200-500ms. I noticed the ...
Arboooz
Feb 29, 2016 at 12:33 pm
Mar 1, 2016 at 5:11 pm -
Yes, Go is the GC language, however, should we let the Go itself to take care of the memory management? This module seems to be useful, but not sure the pro and con to implement it ...
Andy
Feb 28, 2016 at 10:56 am
Feb 29, 2016 at 3:05 pm -
Hi All, New to golang, been getting into more advanced topics like goroutines now. I have a REALLY simple goroutine function. See here: https://play.golang.org/p/LHsq81QY0K I was expecting it to ...
Jc
Feb 19, 2016 at 10:18 pm
Feb 19, 2016 at 11:46 pm -
I am trying to devise a way to build a handle interface in a package that has the following properties: 1) The handle is opaque meaning that anyone that retrieves a handle from the package can only ...
Mvachhar
Feb 16, 2016 at 8:28 pm
Feb 17, 2016 at 2:17 pm -
I have one repo with a sub package library like /reporoot/A/A.go Inside it uses the ssh package. It also exposes the ssh package types in a few of its exported interfaces. So in another repo I have a ...
Jonathan Gaillard
Feb 26, 2016 at 8:10 pm
Feb 27, 2016 at 3:50 am -
I recently experienced https://github.com/golang/go/issues/3611 and spend significant time solving bugs where non-concurrent structs are used concurrently. I'd like to propose a "struct tag" for ...
Ajackson
Feb 27, 2016 at 2:17 am
Mar 4, 2016 at 10:04 pm -
Hi Given this seemingly innocent snippet http://play.golang.org/p/Trqheus3Hl , we might think that the output would be [[x y z a] [x y z b]] However, this actually buggy code gives [[x y z b] [x y z ...
Fumin Wang
Feb 19, 2016 at 7:56 pm
Feb 22, 2016 at 5:40 pm -
For Conns, they have a method SetDeadline(t time.Time). Why isn't this SetTimeout(d time.Duration) or something? Is there really a use case for deadlines in the past? Is it some limitation imposed by ...
Nfirvine
Feb 3, 2016 at 7:21 pm
Feb 10, 2016 at 1:38 am -
https://github.com/dpw/vendetta Vendetta is a minimal tool for managing the dependencies in the vendor directory of a go project. Go supports such directories from version 1.5, but doesn't provide a ...
David Wragg
Feb 3, 2016 at 4:25 pm
Feb 4, 2016 at 12:03 pm -
Hey guys, i am having some problems getting the regex correctly. I want to parse something and am using go tool yacc and a selfwritten (really really simple) lexer. all my lexer does is consume the ...
Sperberstephan
Feb 24, 2016 at 5:26 pm
Feb 26, 2016 at 9:53 am -
Please excuse the n00b question. I looked in the archives and only found a thread from long ago about this. Is there still no ternary conditional operator in Go? If not, I wrote the function below ...
John McKown
Feb 22, 2016 at 3:44 pm
Feb 25, 2016 at 2:28 pm -
[ NOTE: this question does not (directly) concern the iteration order of maps as returned by range. If you think I am asking about that, please reread the email ] I am trying to define an efficient ...
Alex Bligh
Feb 21, 2016 at 8:31 pm
Feb 22, 2016 at 7:59 pm -
I found a web page that tells how to make Go work with Apache, when you are using a virtual host file: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7 ...
Tomi Häsä
Feb 6, 2016 at 5:55 pm
Feb 9, 2016 at 9:27 am -
I'm a fairly newbie to golang. I have a need to store a field which is type net.Conn in sqlite3. What would be the best way to convert this structure into a field and store it in sqlite3? Thanks, ...
Harris Newman
Feb 5, 2016 at 9:12 pm
Feb 6, 2016 at 6:45 pm -
Hi, I currently have a long running go program and is meant to listen to a multiple streaming HTTP requests and also periodically send requests outbound too. When a panic happen, I am finding that ...
Tharshan Muthulingam
Feb 18, 2016 at 5:19 pm
Feb 19, 2016 at 7:03 pm -
Is `map[k].X = x` supported ? Or just do ` tmp := map[k] ; tmp.X = x; map[k] = tmp` if I just want modify a field of map value ( map value is a struct)? -- You received this message because you are ...
Peng Gao
Feb 18, 2016 at 6:28 am
Feb 19, 2016 at 1:25 am -
Hello, this is my first intervention in this forum. I'd like to introduce you golax (https://github.com/fulldump/golax) a framework to build REST APIs from a different perspective: using nodes ...
Gerardo Oscar JT
Feb 4, 2016 at 4:11 pm
Feb 17, 2016 at 11:47 pm -
Dear Gophers, I have the following scenario in a web form <input type="checkbox" name="cars" value="mercedes" Mercedes<br <input type="checkbox" name="cars" value="bmw" BMW<br In golang if i try: var ...
Will
Feb 12, 2016 at 5:08 pm
Feb 12, 2016 at 7:54 pm -
Hi, Microsoft is known to store all kinds of data in binary forms to disk, while Unix like to store all in plain text. I'm wondering what is the idiomatic way in Go to store internal data to disk (so ...
Tong Sun
Feb 7, 2016 at 12:54 am
Feb 10, 2016 at 2:13 pm -
Hi, TL;DR: _cgoCheckPointer0 adds 22x overhead - is it OK, is it unavoidable, or is it a bug? I'm trying go make gopkg.in/rana/ora.v3 go1.6 cgocheck=1 -compatible. Now it compiles, but the tests does ...
Tamás Gulácsi
Feb 8, 2016 at 8:59 am
Feb 8, 2016 at 9:44 pm -
Hello, I fell over a memory issue caused by some bad program. See the example here: http://play.golang.org/p/2Wo9t8u7E9. My motivation was to write a sequence generator that gives me all possible ...
Tim Schindler
Feb 25, 2016 at 2:18 am
Feb 27, 2016 at 4:52 pm -
I have a question about the planned always-on vendoring in go1.7: will the proposed change have a detrimental affect on my workflow, and what tools/approaches might help with this? The problem is ...
Am Laher
Feb 23, 2016 at 2:53 am
Feb 26, 2016 at 1:37 am -
Hello, I'm looking at using go (gccgo 5.3) on a mips device that doesn't have a lot of memory. It has roughly around 70MB of free memory right now. I've read some ancient comments that this might be ...
Viktor Kojouharov
Feb 22, 2016 at 7:29 am
Feb 24, 2016 at 2:31 pm -
Hello, everyone. I use protocol buffers to encode and decode a string. At first, the string is short. type Info struct { Id string Ts int64 Vs map[string]float64 } s := Info{Id ...
Zhiyuan C
Feb 19, 2016 at 2:40 pm
Feb 24, 2016 at 2:04 am -
I got a simple password generator running inside an HTTP handler: var buffer bytes.Buffer func generatePassword(w http.ResponseWriter, r *http.Request) { buffer.Reset() index := rand.Intn(4) for i := ...
Vadimyer
Feb 22, 2016 at 11:04 am
Feb 22, 2016 at 10:19 pm -
Not sure why this isn't working but follow along hopefully you get the issue.. rand.Seed(time.Now().UnixNano()) dat, err := ioutil.ReadFile("namz") Lines: ss dd ff fmt.Println(string(dat)) (Printed ...
Thenoobynubcake
Feb 21, 2016 at 7:38 pm
Feb 22, 2016 at 9:41 pm -
Hello guys, Now, I'm testing. When failed result in single test occur, I want to stop whole testing even if there are subsequent unittest. How should I do to manage that?? Thank you in advance ...
Harry
Feb 19, 2016 at 9:23 am
Feb 20, 2016 at 11:50 am -
Hello! I have some code that includes a simple JIT compiler. I'm wondering about the validity of certain operations using unsafe at the boundaries of my JIT code. In particular, I'm wondering about ...
Caleb Spare
Feb 10, 2016 at 11:51 pm
Feb 11, 2016 at 6:30 pm -
Hello, For my Android/iOS app using a shared Go code base for business logic and communication with the backend, I've run into two issues: *Android UI Thread* On Android, gobind generated callbacks ...
Elias Naur
Feb 7, 2016 at 8:56 pm
Mar 5, 2016 at 4:51 pm -
Want to customise encoding/xml marshal.go file for my project - https://github.com/golang/go/tree/master/src/encoding But don't know how to compile, build / or if I have to fork Tried to find ...
Desaiabhijit
Feb 24, 2016 at 11:06 am
Feb 26, 2016 at 5:05 am -
Hello, This might be a silly question, to which I wasnt able to find an answer, but given the following example: I have an app that uses external libraries. How should I manage these if I want to ...
Bogdan Bursuc
Feb 25, 2016 at 2:28 pm
Feb 25, 2016 at 6:54 pm -
Hi, I have code like: mutex.RLock() json, := json.Marshal(&data) defer w.Write(json) mutex.RUnlock() Could I simplify this code to: mutex.RLock() json, := json.Marshal(&data) w.Write(json) ...
Vasily Korytov
Feb 23, 2016 at 4:37 pm
Feb 24, 2016 at 10:19 pm -
I've recently been trying to integrate the use of go tool vet into our CI flow, and found some cases where it's not entirely clear to me how shadowing plays with nested scopes and the short ...
Skuznets
Feb 24, 2016 at 6:46 pm
Feb 24, 2016 at 8:06 pm -
Hello Gophers! I am trying to print the result of a scan in a map, but it print all the map rather than just the requested element. // DEFINITION OF THE VARIABLE ELEMENT elements := ...
Aurélien Desbrières
Feb 21, 2016 at 2:42 am
Feb 21, 2016 at 10:46 am -
I'm not understanding something fundamental here. I'm trying to make a struct with some embedded slices and I want to implement sort.Interface on a pointer to the struct that will sort various ...
Art Mellor
Feb 18, 2016 at 3:20 pm
Feb 18, 2016 at 4:42 pm -
Hello, is there a way to get all constants from a package via `go doc`? Say I want to figure out what the constant for HTTP status 201 is. Works via godoc: $ godoc net/http|grep Status|grep 201 ...
Harmen B
Feb 16, 2016 at 8:25 pm
Feb 17, 2016 at 8:31 pm -
This is a terrible design on the part of Golang http://catb.org/esr/writings/unix-koans/editor-wars.html -- You received this message because you are subscribed to the Google Groups "golang-nuts" ...
Hareesh Radhakrishnan
Feb 9, 2016 at 12:30 am
Feb 12, 2016 at 2:42 am -
Hallöchen! Coming from Python, I'm used to the mantra "errors should never pass silently". However, this seems to be a bad idea in Go if you don't want to end up with something like this: if _, err ...
Torsten Bronger
Feb 6, 2016 at 6:35 pm
Feb 8, 2016 at 12:33 am
Group Overview
group | golang-nuts |
categories | go |
discussions | 287 |
posts | 1,499 |
users | 434 |
website | golang.org |
434 users for February 2016
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)