英文: Modeling a hierarchy of related things without language support for type hierarchies 问题 我是Go的新手,...
如何在运行在Android上的Go程序中访问互联网?
英文: How to get access to the Internet from a Go program running on Android? 问题 我的程序在安卓终端中无法访问互联网,但在L...
在Go中使用strings.Split函数
英文: strings.Split in Go 问题 The file names.txt consists of many names in the form of: "KELLEE&qu...
Go在Google App Engine上如何处理并发请求
英文: How does Go handle concurrent request on Google App Engine 问题 我对Go在Google App Engine上如何处理并发请求有点困...
GAE实例是否限制为10个并发请求?
英文: Are GAE instances limited to 10 concurrent request? 问题 我从几个来源听说Google App Engine实例有一个硬限制,即10个并发请...
线程安全(Goroutine安全)的Go缓存
英文: Thread-safe (Goroutine-safe) cache in Go 问题 问题 1 我正在为我的服务器构建/搜索一个RAM内存缓存层。它是一个简单的LRU缓存,需要处理并发请求(...
类型名称周围的括号
英文: Parenthesis around type names 问题 我喜欢在Go语言中将类型名称与变量进行一些视觉上的分离。 我一直在尝试以下代码: var target (int64) = 6...
Go语言有哪些简便的方法可以将数据转换为字节或字符串?
英文: What ways does Go have to easily convert data into bytes or strings 问题 我一直在使用Google App Engine G...
MongoDB in Go (golang) with mgo: How do I update a record, find out if update was successful and get the data in a single atomic operation?
英文: MongoDB in Go (golang) with mgo: How do I update a record, find out if update was successful and...
我可以在cgo中使用C++吗?
英文: Can I use c++ in cgo? 问题 在cgo中是否可以混合一些C++代码? 我尝试了这个: package main /* #include <iostream> e...
11727