Search Discussions
-
Hi golang-nuts, I've just submitted the second revision of the proposal for a Code of Conduct for our community. Please take a look at the document here ...
Andrew Gerrand
Nov 17, 2015 at 11:22 pm
Nov 24, 2015 at 1:33 pm -
I see a lot of hate directed at the stdlib's log package, and of course, there are a medley of third party logging packages. What are people's problems with the standard log package? I've seen ...
Nate Finch
Nov 5, 2015 at 3:40 am
Nov 25, 2015 at 12:21 pm -
Hi, I recently stumbled upon description of "nil interface" cause. It's pretty much obvious how it works. What I cannot understand is WHY? Why golang contains such a controversial feature? And the ...
Igor Baidiuk
Nov 10, 2015 at 1:57 pm
Nov 11, 2015 at 10:13 pm -
I'm sure there are many different opinions about how Go could have generics. In my opinion generic functions are the most needed kind of generics. It is easier to do without generic types than ...
Bjarke Ebert
Nov 11, 2015 at 1:46 am
Nov 14, 2015 at 7:21 pm -
How best to construct bytes.Buffer gradually? with fmt.Fprint? This is my code: ``` func getReqAddons(r Request) string { ret := "" if len(r.RequestPlugins.RequestPlugin) != 0 { for _, v := range ...
Tong Sun
Nov 1, 2015 at 7:53 pm
Nov 3, 2015 at 12:48 am -
hello I want to make a golang file for "*release*". This is my command: go build -o testi.exe -ldflags "-H windowsgui" my code: package main import ( "fmt" "os" //"github.com/chai2010/qml" ...
Ravand City
Nov 5, 2015 at 2:24 pm
Nov 24, 2015 at 10:49 am -
Hello everyone We're just starting our journey down the GO path, and I was hoping someone could point me in the right direction here. We're all very used to rails, gemfiles, github and capistrano ...
Matt Davies
Nov 4, 2015 at 2:58 pm
Nov 10, 2015 at 2:15 pm -
Sometimes I find myself in need to edit one of the functions I have, and restarting the whole program just for that is kind of... Let's say I'm too lazy for that. It seems that recompiling and ...
Peret Finctor
Nov 11, 2015 at 9:46 am
Nov 13, 2015 at 10:28 am -
Hi! I was getting annoyed by all the different formatting styles of assembler code. My thought was, that we have "solved" that very nicely with Go, by having a standard formatter, so I set out to do ...
Klaus Post
Nov 30, 2015 at 3:44 pm
Dec 2, 2015 at 8:45 pm -
Hi all, If you think net/http <https://golang.org/pkg/net/http/ server is slow, try fasthttp <https://github.com/valyala/fasthttp , which is up to 10x faster (on synthetic benchmarks of course :) It ...
Aliaksandr Valialkin
Nov 22, 2015 at 2:18 pm
Dec 1, 2015 at 6:51 pm -
15
[go-nuts] Once you have a pointer receiver method, might as well make them all pointer receivers?
Based on the race puzzle Dave Cheney posted here: http://dave.cheney.net/2015/11/18/wednesday-pop-quiz-spot-the-race Once you have a pointer receiver method on a type, should you make all of them ...Tim K
Nov 21, 2015 at 4:31 pm
Nov 23, 2015 at 3:54 am -
Hello, Can I consider that output of json.Marshal is deterministic for the same struct with the identical values? For example : http://play.golang.org/p/Sb1rTfGkFj In the above example, can I ...
Jérôme LAFORGE
Nov 12, 2015 at 5:50 pm
Nov 17, 2015 at 3:34 am -
The Go community is the one popular language community that doesn't regularly produce released versions of packages/libraries. This is kind of an annoying problem. Can we please start doing release ...
Matt Farina
Nov 16, 2015 at 6:17 pm
Nov 17, 2015 at 4:12 pm -
Hi all. Channel is the language primitive and when you read/write to it some synchronization mechanism like mutex is used internally * I suppose*. But is the synchronization used when you call len() ...
Loofort
Nov 12, 2015 at 12:23 pm
Nov 13, 2015 at 8:05 pm -
Hi, I'm working on a server for a game and I'm encountering a lot of lag on the server. I wanted to set up the profiler to see which functions were causing the most lag but I can't seem to figure out ...
Zacharyholland
Nov 8, 2015 at 4:28 am
Nov 9, 2015 at 1:19 am -
Hello everyone, I'm using IntelliJ IDEA 15 to develop golang projects. To debug golfing project, I installed GDB. But I couldn't find GDB related setting on IntelliJ IDEA. I'm trying it on macbook ...
Harry
Nov 4, 2015 at 6:34 am
Nov 7, 2015 at 3:17 am -
At Go tip (what will become Go 1.6), there is now support for HTTP/2, for both client and server. If you run an HTTPS webserver (ListenAndServeTLS), or use the net/http client functionality for ...
Brad Fitzpatrick
Nov 7, 2015 at 4:35 pm
Nov 14, 2015 at 9:15 pm -
Gophers, This is our first stable release of a set of Sublime Text packages (v0.9.0): - 'golangconfig' is a developer library used to obtain information about the local Go environment. It handles ...
Jason Buberel
Nov 4, 2015 at 3:33 pm
Nov 12, 2015 at 7:46 pm -
Hi all, I've been struggling with this issue since yesterday and I'm not quite sure if it's a Go bug or related to the GraphicsMagick wand library that I've wrapped using Cgo. I've created a sample ...
Chris
Nov 19, 2015 at 8:29 pm
Nov 20, 2015 at 2:17 am -
I am a newbie to Golang. I compiled Go 1.5 on arm/linux (BeagleBone Black). After build, the go folder is larger than 200MB. I want to deploy it on embedded linux systems with rootfs size less than ...
Matianfu
Nov 13, 2015 at 1:33 pm
Nov 19, 2015 at 10:38 pm -
Hi. I have small problem that I think could be solved with per-thread random number generators (which Go doesn't provide, right?). I have something like: type Manager struct { res Resource } func (m ...
Roberto Zanotto
Nov 22, 2015 at 10:00 pm
Nov 25, 2015 at 1:25 am -
We have a dispute if handling Windows console should be done the same way as Linux terminal. I feel that Linux terminal is slower (Gnome terminal in particular), but I can prove that. Are there any ...
Anatoly techtonik
Nov 17, 2015 at 11:40 pm
Nov 20, 2015 at 5:34 pm -
When I run the following code with the command "go.exe run main.go", the program doesnt print text to the screen or exit. package main import "fmt" func main(){ fmt.Println("Hello world") } Line ...
Mbudge1
Nov 15, 2015 at 3:46 pm
Nov 17, 2015 at 9:18 am -
Hi guys, I want to build one of import src from github because of replaced src. For example, my gopath directory is like this, bin pkg src/github.com/aaaaa src/github.com/bbbbb src/myproj/xxxxx And I ...
Harry
Nov 9, 2015 at 1:49 pm
Nov 10, 2015 at 7:28 am -
i know that Go use unicode to represante characteres : so normally 'A' will be represented as : 0041 and stored in 2 bytes as : 0000 0000 0100 0001 in memory but when i do fmt.Print([]byte("A")) ...
WALID BELRHALMIA
Nov 7, 2015 at 9:00 pm
Nov 8, 2015 at 9:43 am -
Hi all, I noticed some very slow behavior writing files, which on investigation turned out to be because of the overhead of calling `Write` thousands of times. So I came up with an idea to make this ...
569234
Nov 5, 2015 at 6:10 am
Nov 5, 2015 at 9:09 pm -
In another application in another language, I have a package that works with bitmasks. The base class receives an assoc array of string=int and just does things like hasFlags, addFlags, removeFlags ...
Richard Sugg
Nov 28, 2015 at 6:45 pm
Nov 30, 2015 at 7:08 pm -
Following a recent thread about end of line handling on Windows, out of curiosity I dusted off an old laptop with Windows 7 and installed Go. I tried to run this program ...
Manlio Perillo
Nov 5, 2015 at 2:36 pm
Nov 6, 2015 at 11:15 am -
Hi all, I have a service that acts as a lru cache for backend redis storage. It cache's about 800M items that consume about 15GB memory. Soon it encountered with GC problem. The cpu usage monitor ...
Huabin Zheng
Nov 3, 2015 at 1:11 pm
Nov 4, 2015 at 5:18 pm -
Hello! There is a tool called trace <https://golang.org/s/go15trace which was released in go1.5 <https://golang.org/doc/go1.5#trace_command . I know that there is goroutine leakage in my code (by ...
Grigory Kalabin
Nov 26, 2015 at 11:10 am
Nov 27, 2015 at 10:46 am -
Hi there, First time participating in this group. Lately I have been taking a look at subtle.ConstantTimeCompare and how it is being used out there, and to my surprise, many many people are using it ...
Imkira
Nov 20, 2015 at 1:25 pm
Nov 21, 2015 at 5:33 am -
8
[go-nuts] Can't write encoding other than "chunked" in the Transfer-Encoding field of http.Request
I set the Transfer-Encoding field in the request header to "chunked,gzip", but the request sent on wire only contains "chunked". It seems the only possible value in the Transfer-Encoding field of a ...Caesarxuchao
Nov 16, 2015 at 10:42 pm
Nov 17, 2015 at 9:28 pm -
Good day everyone. I have a few questions I was hoping to get answered if anyone could take the time. I have not taken the plunge in to working with Golang just yet, as I'm more of a C fanatic, but I ...
Jonathan D Hall
Nov 16, 2015 at 1:15 am
Nov 16, 2015 at 3:50 pm -
I'm experiencing a string problem -- please take a look at this simple demo https://play.golang.org/p/1fIeJI7K6A It clearly shows that QueryStringParameters.QueryStringParameter can be further break ...
Tong Sun
Nov 4, 2015 at 4:40 pm
Nov 7, 2015 at 1:06 am -
Gophers, We're currently conducting market research on the use of Go for big data projects. We are looking for developers whose work involves analyzing large datasets who wouldn't mind spending a few ...
Jason Buberel
Nov 17, 2015 at 5:13 pm
Dec 8, 2015 at 11:14 pm -
So, I'm trying to figure out how to use a struct type the correct way. I have: type Something []struct { Field string } What I can't figure out is how to instantiate it correctly and append elements ...
Charles Burton
Nov 24, 2015 at 7:23 pm
Nov 24, 2015 at 7:50 pm -
With this I am trying to win the "Most Useless Go Package 2015"--before it is even invented. I made a super-simple Reader that removes those #-to-end-of-the-line comments as it reads a JSON-ish file ...
Giulio Iotti
Nov 17, 2015 at 11:30 am
Nov 17, 2015 at 6:43 pm -
Hi everyone, I think I have stumbled upon a "peculiarity" with the Scavenger on Go 1.5.1 (and 1.5 for that matter): While parsing a large directory tree (on linux-amd64) I was monitoring the memory ...
Fako1024
Nov 12, 2015 at 10:50 pm
Nov 13, 2015 at 10:15 am -
http://play.golang.org/p/-jOkcgYQUo Why strings.Split("/","/") return slice with two empty elements? -- Vasiliy Tolstov, e-mail: <span class="m_body_email_addr" ...
Vasiliy Tolstov
Nov 12, 2015 at 9:54 am
Nov 12, 2015 at 11:43 am -
Hi, Could you please send me sample code on how to get *BIOS serial number?* which works with Linux,Windows,MAC OS X only with GO language implementation. I would be very grateful if you can send a ...
Sagar Puneria
Nov 5, 2015 at 5:55 pm
Nov 9, 2015 at 10:27 am -
Echoing the request from http://stackoverflow.com/questions/31104777/golang-xml-processing, but need more manipulating power. I.e., I know the answer to above stackoverflow question was beevik's ...
Tong Sun
Nov 27, 2015 at 8:23 pm
Nov 28, 2015 at 8:13 pm -
Hi, In order to become familiar with Go as a network programming language, I wrote a little UDP client and compared it with a similar client written in Perl: package main import ( "net" "fmt" ) func ...
Jan De Backer
Nov 23, 2015 at 4:00 am
Nov 24, 2015 at 6:03 pm -
Hi, I have a query I am using Go version 1.4. I have a GO Process running which will write the logs in /tmp Path. if /tmp partition is full then my go process will get struct. Process will not ...
Saikumaryarava
Nov 16, 2015 at 3:38 pm
Nov 23, 2015 at 5:40 pm -
if I increase i 0 to 400.. or more, MsgPack or Gob takes too long to decode same message ( for i:=0 200 usec, if i=100 loop few in 200 usec few takes 6 millisec ) Please help func main() { ...
Desaiabhijit
Nov 23, 2015 at 7:45 am
Nov 23, 2015 at 9:06 am -
Hi All, I'm writing a library which uses cgo to link against libacl. Compiling on linux_amd64 for linux_amd64 works fine (so long as you have the libacl headers installed). However, cross-compiling ...
Hello
Nov 11, 2015 at 1:49 am
Nov 23, 2015 at 8:33 am -
Hi Gophers, I'm trying to pass a constructor which creates a supertype to a function which expects a constructor for a subtype but that doesn't work. It works when I pass the instance the constructor ...
Frank Schröder
Nov 20, 2015 at 10:54 am
Nov 20, 2015 at 3:09 pm -
Hello Gophers! First we’d like to thank all of you for making GopherCon such a huge success. If you haven’t seen the highlight video and speaker interviews yet, you can view them here ...
Erik St. Martin
Nov 13, 2015 at 1:38 am
Nov 18, 2015 at 12:47 pm -
Hi! I'm use http.FileServer and dont want additional read/seek requests to determine mine type for content-type header. Does it possible to disable this? Or i need to create own FileServer ...
Vasiliy Tolstov
Nov 13, 2015 at 9:43 am
Nov 17, 2015 at 3:55 am -
The behavior of following small program is different if run on Windows compared with OSX or Linux: package main import ( "log" "os" "os/signal" "time" ) func main() { ch := make(chan os.Signal) ...
John Jeffery
Nov 14, 2015 at 4:09 am
Nov 16, 2015 at 8:52 pm -
Hi, I am currently trying to understand how Go context switches between different goroutines without saving all the registers. As part of that search, I found the following structure in runtime2.go, ...
Henry Qin
Nov 15, 2015 at 9:33 pm
Nov 16, 2015 at 4:51 pm
Group Overview
group | golang-nuts |
categories | go |
discussions | 271 |
posts | 1,490 |
users | 392 |
website | golang.org |
392 users for November 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)