用npp写golang没法代码折叠
打开c文件, 可以用alt 0 折叠所有 代码,形成大纲 但golang没法享受这福...阅读全文
打开c文件, 可以用alt 0 折叠所有 代码,形成大纲 但golang没法享受这福...阅读全文
很简单的程序 var mtime float64 = 3592345111.6499996000 fmt.Println(mtime - math.Trunc(mtime)) 返回的结果为什么是 0.6499996185302734 这误差没法接受啊。想要实现的功能是无损地分开整数和小数部分。 怎解...阅读全文
debug按钮没法...阅读全文
2019-03-02 golang:1. stringsstring.Replace(s, " ", "%20", -1)string.Splitstring.SplitN: 最终分成N份string.SplitAfter: 保留sepstrings.Joinlen([]rune(s))2. switch typeswitch x := m.(type) { case bool, int: // x's type is as m, usually interface}3. structtype Param map[string]interface{}type Show struct{Param}这样是ok的,但是map需要单独maketype People struct { name str...阅读全文