英文: What's the best way to maintain a list of open websocket connections? 问题 我想要通过 WebSocket 向连接...
`go build` 失败并显示 `unexpected NUL in input` 错误的原因是什么?
英文: What causes 'go build' to fail with 'unexpected NUL in input'? 问题 我有一个Linux虚拟机,我...
使用golang.org/x/oauth2进行golang的Facebook身份验证。
英文: golang Facebook authentication using golang.org/x/oauth2 问题 我正在尝试使用golang.org/x/oauth2包编写一个简单的程序...
检查在Golang中应用程序是否以管理员身份运行
英文: Check if application is running as administrator in golang 问题 在Google Go应用程序中,检查当前进程是否以管理员身份运行的最...
使用并发的 Golang 组装线。
英文: Assembly Line in Golang using concurrency 问题 新手学习Go语言。我正在尝试编写一个“装配线”,其中多个函数像工人一样相互传递某个数据结构,每个函数对...
如何查看Unicode类别中的所有字符?
英文: How can I see all characters in a unicode category? 问题 我已阅读文档,但找不到任何示例。 http://golang.org/pkg/un...
如何在Go语言中获取函数执行时间的详细分解(性能分析)
英文: How to get a function-duration breakdown in go (profiling) 问题 更新(2019年1月24日): 这个问题是4年前关于Go 1.4的(...
如何从reflect.Value中获取结构字段
英文: How to get struct field from refect.Value 问题 给定的代码片段如下: type Runnable interface { Run() } type T...
一次认证请求适用于双方。
英文: authentication request once for both side 问题 我正在制作一个Chrome扩展程序。 为了方便起见,我希望在Chrome端和服务器端都能获得用户的授权...
Go:回调函数返回接口的实现
英文: Go: function callback returning implementation of interface 问题 我有一个处理资源解析的系统(将名称匹配到文件路径等)。它解析文件列...
11727