Search Discussions
-
Hi, What is the rationale for := operator? We allow var err error foo, err := bar So we remove the strict guarantees, maybe I didn't know err was already introduced? To me it seems we get the ...
Saku Ytti
May 6, 2014 at 1:58 pm
May 12, 2014 at 11:08 am -
Hi Although, not explicitly stated in http://golang.org/pkg/time/#Ticker , would not calling time.(*Ticker).Stop() leak memory? The reason why I suspect there'd be a leak is because while tracing ...
Fumin Wang
May 14, 2014 at 4:16 am
May 16, 2014 at 5:12 am -
Here is some example code that demonstrates my question: var condition bool var wg sync.WaitGroup for _, item := range items { wg.Add(1) go func(item) { if meetsCondition(item) { condition = true } ...
Kaiskye
May 7, 2014 at 12:28 am
May 10, 2014 at 8:19 am -
Is there something in the language (native) as the 'urllib' (Python) in Go? Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe ...
Marcos Garcia Marcker
May 7, 2014 at 1:26 am
May 12, 2014 at 4:56 pm -
Hi I'm new to Go and coming from Python. Im starting to port some of my programs to Go. I'm trying to implement a Set of strings as type set map[strings]bool and adding a value to the set as res := ...
Mirko Dziadzka
May 5, 2014 at 6:39 pm
May 7, 2014 at 2:16 am -
Trying to do some program documentation and would like to automatically document when the program was compiled by embedding it in the version string. I can get the go version with runtime.Version() ...
Hotei
May 9, 2014 at 2:58 pm
May 11, 2014 at 5:47 am -
I'm a 14 year old guy who is really good with computers, up till you get into programming, because I know no programming language. I use Linux as my daily operating system, I know how to setup web, ...
Omar Radwan
May 17, 2014 at 2:03 am
May 18, 2014 at 2:04 am -
I am trying to examine the performance of Go compare to C. I did a simple operation c=a+b*s 100 million times, but found Go is 26% slower. The program is really simple and straight forward, and I am ...
Eric Z
May 12, 2014 at 11:14 pm
May 14, 2014 at 1:23 am -
I'm not sure how many people are using Go for scientific computing (go.science has been quiet for the past while), but I thought people might be interested in this paper in which we write about the ...
Dan Kortschak
May 13, 2014 at 12:19 am
May 15, 2014 at 12:54 am -
I suspect a concurrent grep tool might be the Go equivalent of the blog in Django -- something everyone probably writes once while they're learning. Here's mine ...
Shawn Milochik
May 4, 2014 at 4:58 pm
May 5, 2014 at 2:17 pm -
I know the Unix people here have the convenient option of using something along the lines of go run *.go yet, us Window guys don't have the luxury of token expansions on the cli. It would be nice if ...
Berserkd Dhsk
May 15, 2014 at 5:39 pm
May 16, 2014 at 2:26 pm -
On the heels of our previous write-up of moving from Python to Go, we've open sourced a smattering of packages that made our transition much easier. Today we're releasing an errors library, (yet ...
JT Olds
May 12, 2014 at 7:37 pm
May 14, 2014 at 3:37 am -
the socket read code : headerBuf := make([]byte, 4) t1 := time.Now().UnixNano() _, err := reader.Read(headerBuf) t2 := time.Now().UnixNano() if err != nil { mylog.Warning("Warning: read header failed ...
Chensi_04
May 13, 2014 at 3:44 pm
May 15, 2014 at 3:51 pm -
hi all i'm Erfan from iran i need help in web programming , But nobody can not help me I can hardly think of because there is no Persian sources sorry i can't speak english well plz help me -- You ...
Erfan Akbarimanesh
May 11, 2014 at 8:46 am
May 13, 2014 at 6:25 am -
Hi All, I have a situation where I am iterating through a table that has a text field with some very large data. The iterator fail with a bad driver connection error about two thirds of the way ...
TheNinthWave
May 1, 2014 at 2:58 pm
May 4, 2014 at 9:35 am -
Hi Gophers, I'm trying to statically link multiple libraries that wrap various C libraries like: libxml2, libgmime, etc. But when I try to statically link them by: go build -ldflags '-d' I get the ...
Vasko Zdravevski
May 5, 2014 at 9:21 pm
Sep 8, 2014 at 7:41 pm -
Hello, I compiled Go master branch on a Ubuntu amd64 machine from the here: https://code.google.com/p/go Made a simple Hello World application in Go. Cross-Compiled this application a.go with ...
Drago Ivanov
May 7, 2014 at 1:19 pm
May 14, 2014 at 10:59 pm -
I wrote a 10 part series talking about writing a compiler from scratch in Go. I'd love to hear feedback from the community and suggestions for improvement. I'm sure I've cocked something up but ...
Rob Thornton
May 4, 2014 at 12:39 am
May 9, 2014 at 3:58 pm -
Hi everyone, I have an interface like this: type MyWriter interface { io.Writer ... Configure(stuff Stuff) } And then I have a slice of MyWriters which I want to use with io.MultiWriter, like this ...
Juanval
May 6, 2014 at 8:35 pm
May 9, 2014 at 1:48 pm -
Hi there, please don't kill me again<https://groups.google.com/d/msg/golang-nuts/-STRYo2Cc0g/IauNY8dyOxwJ . Even tho it doesn't look like, but I like go and go fmt and I use it. However I was ...
Davide D'Agostino
May 3, 2014 at 6:44 am
May 7, 2014 at 9:18 pm -
Hi all. I'm read many sites and see to many projects but can't choose. I need: able to go get my project able to lock to specific commit as i understand - all third_party stuff needs to be in my repo ...
Vasiliy Tolstov
May 6, 2014 at 2:03 pm
May 7, 2014 at 3:31 pm -
I am trying to utilize some C++ code from Go/cgo through a C interface. This works ok on OS X, but on Windows (Win7 x64, built with TDM-GCC-64) the program crashes after compiling and linking without ...
Ivar Gaitan
May 15, 2014 at 1:16 pm
May 17, 2014 at 11:19 pm -
Hi I'm at verge of choosing the programming language to create a client side application on Linux platform, which needs to perform the following functions : 1. Collect the details of the hardware & ...
Ksrangaraj92
May 12, 2014 at 1:14 pm
May 15, 2014 at 9:28 am -
I've got some code which should read gzipp'ed and non-gzipp'ed files. For that I have an open method which wraps the reader in a zip reader if the filename ends with gz. My assumptions are that A) ...
Frank Schröder
May 14, 2014 at 3:55 pm
May 14, 2014 at 9:15 pm -
9
[go-nuts] From PHP to Go, I hade coule of question about directory structure Global variable access
Hello there, I 40 years old self taught web developer. Which try to move from PHP to go. I had no programming education and no c++ or java background. So my understanding of variable types, pointers ...Sancar Saran
May 13, 2014 at 9:42 am
May 14, 2014 at 8:17 pm -
Hello all, Is it possible to load and parse XML without having to create structs? I'm calling some legacy SOAP services (that return a boatload of data!) for some quick prototyping and creating ...
Ace Rajan
May 6, 2014 at 8:32 pm
May 12, 2014 at 1:13 pm -
Does anybody know if they're up yet or when they will be? Cheers, Carl -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group ...
Carl Menezes
May 5, 2014 at 8:38 pm
May 7, 2014 at 4:28 pm -
My OO brain continues to wrestle with Go's type system. After extensive reading and testing, I think I understand why the following does not work. My question is how do I accomplish the desired goal? ...
Peter Lacey
May 6, 2014 at 6:34 pm
May 6, 2014 at 8:18 pm -
My program[1] runs pretty well on a 386. In the test I've done now dozens of times, it takes about five seconds. However, if I do the same test with the -i flag (for a case-insensitive search), it ...
Shawn Milochik
May 5, 2014 at 3:21 am
May 5, 2014 at 3:00 pm -
I was trying to compile go 1.0.3 to do some progress benchmarks. Upon compiling, I get cmd/cc /Users/brendan/gover/go_1_0_3/src/cmd/cc/funct.c: In function 'dclfunct' ...
Brendan Tracey
May 1, 2014 at 10:37 pm
May 4, 2014 at 5:00 am -
Sorry if this has been answered before but a search here came up with nothing on topic. Context: I have a package with some functions where a Pause() waits for console input. During the pause the ...
Hotei
May 2, 2014 at 7:25 pm
May 2, 2014 at 10:11 pm -
The code seems to behave strangely. package main import "strconv" func main() { var a int if true { a, err := strconv.Atoi("1234") if err != nil { println("Error!") return } println("inside if", a) } ...
Zealjagannatha
May 2, 2014 at 2:53 am
May 2, 2014 at 4:23 pm -
How can I simplify my example work with bytes? Simple 1 http://play.golang.org/p/QbTU1XPKW0 Simple 2 http://play.golang.org/p/Zr5CtWqC40 -- You received this message because you are subscribed to the ...
Igor Avdoshkin
May 16, 2014 at 6:45 am
May 18, 2014 at 12:20 pm -
Is there a library out the in GolangLand that can be used to perform the common precondition tests that one usually builds into functions or methods that validate inbound parameters? Ex: string is at ...
Paul Tiseo
May 16, 2014 at 12:40 pm
May 17, 2014 at 8:12 pm -
Hello Gophers, I am preparing a presentation about concurrency in Go and Java. I am using the present tool and it runs Go programs nicely, but Java programs are a different thing. Has anyone used ...
Borja Roux Lorenzo
May 8, 2014 at 6:11 am
May 9, 2014 at 11:31 am -
doc: http://godoc.org/bitbucket.org/kardianos/rdb driver: http://godoc.org/bitbucket.org/kardianos/tds New, working database interface and driver. API will still change most likely, requesting ...
Daniel Theophanes
May 3, 2014 at 3:29 am
May 8, 2014 at 2:11 am -
Hey, I just pushed country <https://github.com/101loops/country , a package with country information (e.g. calling codes, currency etc.). What do you think? Regards Stephan -- You received this ...
Stephanos
May 6, 2014 at 4:36 pm
May 7, 2014 at 12:54 am -
Hello everyone, I saw the presentation sheets <http://talks.golang.org/2014/c2go.slide#1 of Russ Cox c2go. The only thing I couldn't find is where that tool can be found. My question is whether the ...
Gerard
May 4, 2014 at 7:55 am
Oct 11, 2014 at 9:50 am -
I am trying to implement sql queries with a time-out in MySQL. I use the standard database/sql and the driver github.com/ziutek/mymysql. The MySQL server is version 5.5.37. I have something that ...
Peter Kleiweg
May 14, 2014 at 10:38 pm
May 16, 2014 at 10:03 am -
I have a node.js server that makes around 100-500 requests/second to my Go server. I set my ulimit to over 300,000. Sometimes, when traffic is high I get the "too many open files" error. From what I ...
John Lee
May 11, 2014 at 2:39 am
May 11, 2014 at 5:47 am -
I've been looking around a lot today, and the best resources I've found are: https://www.youtube.com/watch?v=83JBmS8WpHM Outdated, install method shown doesn't work ...
Shawn Milochik
May 8, 2014 at 7:25 pm
May 8, 2014 at 10:08 pm -
The spec says the zero value for a slice var is nil, but I'm getting a non-nil but empty slice when creating a slice var, whether in package or function scope: http://play.golang.org/p/n8yb4LK5Bs Can ...
Jonathan Gold
May 7, 2014 at 9:51 pm
May 7, 2014 at 11:02 pm -
Hi . Recently we have developed a backend that uses a lot of slices of structures , Example : type Vehicle struct { VehicleId string Status int Millage float } type Fleet struct { Name string ...
Guy Brandwine
May 18, 2014 at 1:23 pm
May 18, 2014 at 7:37 pm -
I want to make an app like TextExpander (on the Mac) or AutoKey (on Linux). I use AutoKey, but it freezes, the configuration editor doesn't work properly, and there's lag. I'd like to make one in Go ...
Shawn Milochik
May 12, 2014 at 4:08 pm
May 15, 2014 at 9:43 pm -
Hi I wonder are net/http.(*response).Write() and net/http.(*response).Flush() expected to be called by only one goroutine? After much searching, the closest discussion I could find was ...
Fumin Wang
May 13, 2014 at 11:31 am
May 15, 2014 at 12:09 am -
I'm seeing an odd issue with image/gif. When an image is loaded with gif.DecodeAll, and written to a new file, with no manipulations, via gif.EncodeAll sections of each frame are black when they ...
Jason Del Ponte
May 14, 2014 at 2:35 pm
May 14, 2014 at 5:25 pm -
hello i have been asked to ship logs to a server with logstash so i tried to use a log shipper and it asked me to compile it using Go the logs i try to ship are on an AIX server and i can't install ...
Quentin Guiot
May 12, 2014 at 9:57 am
May 13, 2014 at 7:53 am -
Is this a byproduct of working in open source, or perhaps a continuous integration methodology being followed? (to see this for yourself (on a mac): cd /usr/local/go;grep --exclude=*.o -rnw . -e ...
Jean de Klerk
May 11, 2014 at 11:18 pm
May 12, 2014 at 2:59 am -
Hi all, I've been working on my new OpenImageIO <https://github.com/OpenImageIO bindings for Go ( OpenImageIGo <https://github.com/justinfx/openimageigo ) and finally wrote enough of the cgo bindings ...
Justin Israel
May 2, 2014 at 11:54 am
May 11, 2014 at 10:11 pm -
Interesting report here - http://www.zdnet.com/should-apis-be-copyrighted-7000029292/ Looks like Google might have a bit more incentive to use go for more projects in the future. I think the general ...
Hotei
May 9, 2014 at 11:13 pm
May 11, 2014 at 8:39 am
Group Overview
group | golang-nuts |
categories | go |
discussions | 207 |
posts | 1,260 |
users | 378 |
website | golang.org |
378 users for May 2014
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)