![240](https://cdn2.jianshu.io/assets/default_avatar/9-cceda3cf5072bcdd77e8ca4f21c40998.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IDEA安裝protocol buffer插件 Google Protobuf support for JetBrains setings > ...
架構(gòu)模式 pipe-filter 非常適合數(shù)據(jù)處理及數(shù)據(jù)分析系統(tǒng) Filter封裝數(shù)據(jù)處理的功能 松耦合,F(xiàn)ilter只跟數(shù)據(jù)格式耦合 pipe...
reflect.TypeOf vs reflect.ValueOf reflect.TypeOf 返回類型(reflect.Type) refl...
單元測(cè)試 t.Error()測(cè)試失敗,后面的可以執(zhí)行嘶朱,其他測(cè)試?yán)^續(xù)執(zhí)行 t.Fatal()測(cè)試失敗趾断,后面的不會(huì)執(zhí)行鸿脓,其它測(cè)試?yán)^續(xù)執(zhí)行 代碼覆蓋率...
只運(yùn)行一次 僅需任意任務(wù)完成 所有任務(wù)完成 對(duì)象池 sync.pool 對(duì)象緩存 嘗試從私有對(duì)象獲取 私有池不存在躁愿,嘗試從當(dāng)前processor...
Context 根context:通過context.background()來(lái)創(chuàng)建 子context:context.withCancel(p...
向關(guān)閉的channel發(fā)送數(shù)據(jù)袍睡,會(huì)導(dǎo)致panic v,ok <-ch;ok為bool值创泄,true表示正常接受艺玲,false表示通道關(guān)閉 所有的ch...
Actor Model CSP vs Actor 和Actor的直接通訊不同,CSP模式則是通過Channel進(jìn)行通訊的鞠抑,更松耦合一些饭聚。 Go中...