02 2020 档案

摘要:常用命令 设置索引 db.collection.createIndex({user_id: 1, add_time: 1}, {background: true}) 创建索引特别要注意的是将background设置为true,在建索引的过程会阻塞其它数据库操作,background可指定以后台方式创 阅读全文
posted @ 2020-02-28 17:51 jiuchen 阅读(140) 评论(0) 推荐(0) 编辑
摘要:http请求 hello world package main import ( "fmt" "net/http" ) //创建处理器函数 func handler(w http.ResponseWriter,r *http.Request){ //r.URL.Path路由中的参数 fmt.Fpri 阅读全文
posted @ 2020-02-24 11:26 jiuchen 阅读(383) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示