發表文章

目前顯示的是有「error」標籤的文章

[Go] 錯誤訊息歷經收集

panic: assignment to entry in nil map 原因:  map的使用一定要初始化,所以配合make一起用,雖然編譯的時候可以過關 正確寫法: reMapUser := make(map[string]ST.SingleUserObject) short write 原因:  實際寫入的內容比預期的短少,換句話說東西只寫入一部分,部分有丟失,自己是在用gorutine短時間寫入redis同一個key遇到 protoc-gen-go: program not found or is not executable –go_out: protoc-gen-go: Plugin failed with status code 1. 這是有使用套件protoco: https://developers.google.com/protocol-buffers/ 原因:  中途我改了GOPATH,把GOPATH 改回來就沒事 Created Date : 2018/07/30 Last Updated Date : 2018/07/31