摘要:
$admin = Db::connect('mongo')->name('admin')->where('_id' , new \MongoDB\BSON\ObjectId('61304f37f31a000006000cf3'))->select()->toArray(); 阅读全文
摘要:
package main import ( "fmt" "io" "os" "strconv" "bytes" ) func check(e error) { if e != nil { panic(e) } } /** * 判断文件是否存在 存在返回 true 不存在返回false */ func 阅读全文
摘要:
if _, ok := map[key]; ok { //存在} 阅读全文
摘要:
sc.exe delete "name" 阅读全文
摘要:
package main import ( "encoding/json" "fmt" "reflect" ) func main() { resString := ` { "access_token": "47_qIFirLMuWsDXVBWbUCRqWa8LnHku4L2oIALxb29p3j6 阅读全文
摘要:
下载地址: wget -c http://sphinx-for-chinese.googlecode.com/files/sphinx-for-chinese-1.10.1-dev-r2287.tar.gz wget -c http://sphinx-for-chinese.googlecode.c 阅读全文
摘要:
vim /usr/local/sphinx/etc/sphinx-min.conf source main { type = mysql sql_host = localhost sql_user = root sql_pass = root sql_db = test sql_port = 330 阅读全文