Time of Update: 2016-12-06
標籤:widgets namespace 函數對象 通過 命名 標頭檔 逆向 ++ 隊列 vector是C++標準模板庫中的部分內容,它是一個多功能的,能夠操作多種資料結構和演算法的模板類和函數
Time of Update: 2016-11-23
標籤: 執行 解壓 bin com cal lan 變數 org 1. https://golang.org/dl/ 2.解壓 解壓到/usr/local/go目錄下cd /
Time of Update: 2016-11-22
標籤:傳遞 聲明 let 接收 監聽 lock 建立 事件 運行時 TODO:Go語言goroutine和channel使用goroutine是Go語言中的輕量級線程實現,由Go語言運行時(ru
Time of Update: 2016-11-19
標籤:init 下載 迴歸 als 機房 多個 思路 項目 原始碼 最近接觸Object Storage Service,國際上鼎鼎有名的Amazon S3還有Google Cloud
Time of Update: 2016-11-16
標籤:new tor strong blog 應用 common with nal current 原文: http://www.cnblogs.com/idche/archive/2
Time of Update: 2016-12-05
標籤:ble mat 鍵盤 ima osx .com http 開啟 ica Frank Pu連結:https://www.zhihu.com/question/2069
Time of Update: 2016-12-02
標籤:idt cli set 自適應螢幕 blog color 滾動 element code iframe去捲軸<iframe name="myFrame" id="myFrame"
Time of Update: 2016-11-30
標籤:方法 符號 log 複數 匯出 sdn 分割 ase exce 今天從資料庫裡面查了點資料,用plsql匯出為csv資料後用excel開啟後就出問題了,顯示的問題,excel中
Time of Update: 2016-11-13
標籤:details golang 預設 名稱 並且 變數 files 括弧 err Go template包下面有兩個函數可以建立模板執行個體func New(name string)
Time of Update: 2016-11-27
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。TODO:一不順眼就換字型Go之代碼篇 image包實現了一個基本的2D映像庫,該包中包含基本的介面叫做image,這個裡麵包含color,這個將在image/color中描述;新增字型font,進行字型編輯。早在幾年前Go
Time of Update: 2016-11-26
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。1、並發並不是並行,前者是優先對時間片的搶佔,後者是真多核。 go中多線程時直接要求並行的方法是:runtime.GOMAXPROCS(runtime.NumCPU())亦不可濫用,CPU密集型,並發度很高的情境適用。 2、go起的協程 3、 function that returns a chanel fan-in 二次緩衝 send a chanel on a chanel
Time of Update: 2016-11-25
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。package mainimport ("fmt""reflect")func main() {fmt.Println(typeChck("xiaochuan", "string"))fmt.Println(typeChck(123, "int"))fmt.Println(typeChck(12.3, "int"))}//類型檢測
Time of Update: 2016-11-25
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。代碼來源於《Go語言開發教程》// 線程同步: sync.Mutexpackage mainimport ("errors""fmt""sync")type MyMap struct {mp map[string]intmutex *sync.Mutex}func (this *MyMap) Get(key string) (int, error)
Time of Update: 2016-11-23
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。在Go語言中使用redis資料庫串連到Redis儲存和擷取資料解碼成json最後應該在web應用中使用一個串連池在Go語言中使用redis資料庫日期:2016-09-13 作者:未知
Time of Update: 2016-11-20
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。無論何種語言,依賴管理都是一個比較複雜的問題。而Go語言中的依賴管理機制目前還是讓人比較失望的。在1.6版本之前,官方只有把依賴放在GOPATH中,並沒有多版本管理機制;1.6版本(1.5版本是experimental
Time of Update: 2016-11-13
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。go 語言請求,小案列get與post:package main import("fmt""net/http""io/ioutil""strings""os""io")func main() { httpGet() content:=httpPostParmas() savaFile(content)}func
Time of Update: 2016-11-19
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。Golang的Interface是個什麼鬼問題概述Golang的interface,和別的語言是不同的。它不需要顯式的implements,只要某個struct實現了interface裡的所有函數,編譯器會自動認為它實現了這個interface。第一次看到這種設計的時候,我的第一反應是:What the
Time of Update: 2016-11-18
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。package mainimport ("fmt")type Queue struct {pBase *[6]intpFront,pRear int}func initQueue(q *Queue) {var arr=new([6]int)q.pBase=arrq.pFront=0q.pRear=0}func isEmpty(q *Queue) bool {if q.pFront==q.pRear {return
Time of Update: 2016-12-02
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。介面定義-基本介面 //-----------------------------------------------------------------------------//===================================基本介面===================================//--------------------------------------------------
Time of Update: 2016-11-17
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。https://www.kancloud.cn/kancloud/the-way-to-go/72679例題func getMsg() (msg string) { reader := bufio.NewReader(os.Stdin) if err != nil { fmt.Println(err.Error()) } return}簡要概括:reader 是一個指標,因為bufio.NewReader()