摘要:
一. 开发工具1)sql2go用于将 sql 语句转换为 golang 的 struct. 使用 ddl 语句即可。例如对于创建表的语句: show create table xxx. 将输出的语句,直接粘贴进去就行。http://stming.cn/tool/sql2go.html 2)toml2 阅读全文
摘要:
<svg style="width:60px;height:60px"> <use xlink:href="sprites.svg#a" fill="red"> </use> </svg> 多svg在线合并https://www.zhangxinxu.com/sp/svgo/ 阅读全文
摘要:
集合sales的定义如下: { "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate("2014-03-01T08:00:00Z") } { "_id" : 2, "item" : "jkl", "pric 阅读全文
摘要:
package main import ( "fmt" "crypto/md5" "math/rand" "sort" "time" ) type MapEntryHandler func (string, string) // func printKeyValue(key string, valu 阅读全文
摘要:
这个问题很basic,不过还是困扰了我一段时间.(这里主要讨论的是命令行模式下)我本来觉得应该使用命令 rmdir但是发现它无法删除非空的目录.后来发现了原来应该使用命令 rm -rf 目录名其中参数-f表示force.使用了这个参数就不会提示你是否要删除了. 阅读全文