英文: Getting screen resolution in SDL 2 问题 我正在尝试获取本机屏幕分辨率,并使用sdl 2(github.com/veandco/go-sdl2/sdl)和go...
在Go程序中访问其他文件中的对象。
英文: accessing objects from other files in go program 问题 Go语言的goji微框架有一个完全功能的示例应用程序,包含三个文件,分别是main.go...
使用时间包常量而不是数字。
英文: go time package constants instead of digits 问题 在Format函数中,可以使用常量代替数字吗? time.Unix(1392899576, 0)....
How to process stderr in go?
英文: How to process stderr in go? 问题 我有一个名为"myapp"的应用程序。该应用程序只是将内容写入stderr。 重要的部分是,我想要捕获std...
Go:将变量传递给函数,并返回一个接口
英文: Go: Variable to a function, returning an interface 问题 在Go语言中,为什么我不能将一个返回接口类型的函数赋值给一个变量? 以下是一个最简测...
Golang有指针的指针或指针的引用特性吗?
英文: golang has pointer's pointer or pointer's reference feature? 问题 嗨,如果你需要改变指针指向的位置而不是改变指针指...
使用mgo处理非结构化内部文档
英文: unstructred inner document with mgo 问题 我有一个具有以下结构的文档: { " _id ":" 736722976 "...
在Go Web应用程序中使用全局变量来存储数据库句柄是否是一个好主意?
英文: Is it a good idea to use global variables to store DB handles in a Go web application? 问题 官方指南表示...
如何在处理模糊错误时保持良好的Go软件包测试覆盖率?
英文: How to maintain good Go package test coverage when dealing with obscure errors? 问题 我正在尝试在一些Go包中保...
Go测试在Makefile中找不到测试包。
英文: Go test does not find package tests in Makefile 问题 我有以下的Makefile: SHELL := /bin/bash boot: @go r...
2905


