英文: Go huge file download and passing to client (proxifying) 问题 我有一个基于Martini的小应用程序,面临一个无法解决的问题。 我想添...
How to write simple regex in golang?
英文: How to write simple regex in golang? 问题 我正在尝试编写一个正则表达式,该表达式返回以点开头并且直到第一个空格之间的子字符串。但是我对正则表达式还不熟悉,...
Timeout structure in Go
英文: Timeout structure in Go 问题 我正在寻找一种具有存储过期数据功能的存储方式。我的意思是,一种可以指定要存储的数据和超时时间的结构,该值在一段时间后会被删除。 英文: I...
同步读写TCP套接字
英文: Synchronize reads and writes to TCP socket 问题 我正在尝试与一个响应消息的TCP服务器进行通信: package main import ( ...
How to host go application on dedicated server, without using google app engine
英文: How to host go application on dedicated server, without using google app engine 问题 可以将Go应用程序部署在A...
在Golang中仅导出结构体以进行测试。
英文: Export structure only for testing in Golang 问题 我有一个实用程序包,许多其他包都在使用它。我还创建了一些实现这些接口的测试结构,并将它们放在int...
在源代码中直接使用gobs,这是可能的吗?
英文: use gobs directly in the source code, is it possible? 问题 我想知道是否可以直接在源代码中使用gob编码的数据(例如在函数中)。原因是通过...
What does the w flag mean when passed in via the ldflags option to the go command?
英文: What does the w flag mean when passed in via the ldflags option to the go command? 问题 上下文: > ...
如何改进超时函数的实现?
英文: How make better timeout function 问题 我正在使用time.After(time),它工作得很好。 我的问题是:它是否准确,我应该继续使用它还是自己编写一个函数...
Go在休眠时会超时,但在忙等待时不会超时。
英文: Go times out on sleep but not on busy-wait 问题 在Go语言中,可以使用time.After函数来设置一个睡眠函数的超时时间,但是对于一个忙等待(或工...
364