go
Cannot compile Go language on Mac OS X 10.6.7
When following instructions on Getting Started - The Go Programming Language, I get the code and try to run the all.bash script.[详细]
2023-03-12 07:58 分类:问答making generic algorithms in go
I can\'t figure out a clean way to implement an algorithm that will work on any type. The following code will produce errors trying to convert a string or a typed slice into interfaces, and you can\'[详细]
2023-03-11 06:22 分类:问答Why can't Go method Receiving Types be interfaces?
From the Go documentation on method declarations: The receiver type must be of the form T or *T where T is a type name. T is called the receiver base type or just base type. The base type must not b[详细]
2023-03-10 15:26 分类:问答Why doesn't the Go statement execute in parallel?
I\'m testing this Go code on my VirtualBoxed Ubuntu 11.4 package main import (\"fmt\";\"time\";\"big\")[详细]
2023-03-10 14:21 分类:问答Web application backend authentication and interaction
I\'m currently writing a Web application backend in Go. What is the best way to make some kind of API available for a standard jQuery AJAX frontend to interact with my backend?[详细]
2023-03-09 19:07 分类:问答Cast from renamed type in google go
I\'m trying to write suitable method of converting appengine/datastore.Time type to string. This type is declared as type Time int64[详细]
2023-03-09 16:50 分类:问答Exec a shell command in Go
I\'m looking to execute a shell command in Go and get the resulting output as a string in my program. I saw the Rosetta Code version:[详细]
2023-03-09 15:34 分类:问答Google App Engine - Go vs. Python recommendations? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate,开[详细]
2023-03-09 14:20 分类:问答Go compiler says "declared and not used" but they are being used
I have the following function that is giving me \"variable declared and not used\" errors: type Comparison struct {[详细]
2023-03-09 13:13 分类:问答Looping over an array of objects in a template (Go)
I\'m passing a struct (one element is an array of Category objects) to the template for rendering. In the template, I have code that looks something like this:[详细]
2023-03-09 05:05 分类:问答