摘要:
相信这样的语句在go中大家见的很多switch t := arg.(type) {default: fmt.Printf("unexpected type %T\n", t) // %T prints whatever type t hascase bool: fmt.Print... 阅读全文
摘要:
以下是我在go项目中碰到问题1. 如何只测试指定的test文件,而不是所有的单元测试都跑一遍.go tool vet -test -v src\github.com\astaxie\beego\controller_test.go go tool vet 是个很不错的工具,里面有很强大的功能go... 阅读全文