Major problem: System environment variable GOBIN cause problem “vim-go error: vim-go: goimports does not support srcdir” Situation: Recently I use vs code to write golang more than vim-go,But when you upgrade the Golang version then use vim-go to save file, it will always popup following error message. vim-go: goimports does not support srcdir Problem Environment: Mac Only. Homebrew installed only. Root Cause: normally there are two importnt variable in go env which was $GOPATH and $GOBIN. But most user only set $GOPATH but $GOBIN. It will cause your all golang binary install via go install to the directory $GOPATH/bin. Recently Homebrew formula, it will help us to set $GOBIN but the path will be/usr/local/Cellar/go/GO_VERSION/libexec/bin rather than $GOPATH/bin. What’s the problem with that? If you have any package which force to install in $GOPATH/bin, it might has problem with duplicate or not install latest one with Golang update. dlv has the...
這是什麼? 程式週記主要內容如下: Gihub project 介紹: 主要會貼一些github,但是會盡量寫上一些有用的評語(或是我容易想到的關鍵詞)幫助以後查詢 網路文章心得: 會寫些心得,強迫自己閱讀. “程式週記”並且定期週期性更新. 大部分內容在我的twitter都會有,這邊只是將一些簡單的心得與感想註解一下. 本週摘要 本週花太多時間在學習 Amazon Echo 跟一些社群的事務上面.應該花更多時間開始看論文.下週應該又要回到看論文寫每週專題的日子. 本週專題將上週的 Line Bot 套件拆解出來,準備要移植到 Facebook Messenger Platform 之用. Go mkideal/onepw: onepw is a command line tool for managing passwords 使用命令列的密碼管理工具,可以幫你產生你需要的密碼並且儲存起來,幫助你再也不需要記住密碼. emc-advanced-dev/unik: The Unikernel Compilation and Deployment Platform 幫你把 Go App 燒在可開機磁碟上. saiday/JonSnow: Google Play review watcher, deliver new reviews to your slack channel 很威的 Google Play Review Watcher by saiday ,一開源過後馬上就有人幫忙加上 Apple Store Review Watcher 開源真棒啊… How To Use Martini to Serve Go Applications Behind an Nginx Server on Ubuntu 雖然文章是 2013 年的,但是使用 NGINX 搭配 Go 的 Web App - Martini 到目前都還是很多想要使用的架構之一. [Youtube] Golang Google Cloud Storage 在 Google Cloud Storage 上面使用 Golang 的影片教學. 在 Github 專案內搜尋 Golang 函式,Golang 開發者必裝 Chrome Extension 這個 Chrome Extension 不錯使用,一定要裝. liviosoares/go-watson-sdk: Go (golang) SDK for IBM Watson services 最近在大肆宣傳的 IBM 網路服務 Watson ,馬上就有人寫出 Go 的 SDK .幾乎所有的服務都可以使用,相當的棒. manul: The madness vendoring utility for Golang programs 使用 Git submodule 來做...
這是什麼? 程式週記主要內容如下: Gihub project 介紹: 主要會貼一些github,但是會盡量寫上一些有用的評語(或是我容易想到的關鍵詞)幫助以後查詢 網路文章心得: 會寫些心得,強迫自己閱讀. “程式週記”並且定期週期性更新. 大部分內容在我的twitter都會有,這邊只是將一些簡單的心得與感想註解一下. 本週摘要 這個禮拜看了不少有意義的網路文章- “如何在四十歲後繼續從事軟體開發“ ,剩下的時間就拿來做一些有意義的專案.流浪動物領養的 Line 機器人.希望能夠幫助到一些流浪動物. Go Go best practices, six years in 作者分享學習 Golang 六年後(喔!一開始就學) 的一些實際演練上的好範例. hashicorp/raft: Golang implementation of the Raft consensus protocol 其實不少使用 Raft 的套件,不一定都是使用 etcd/raft 可能都是使用這套. A lightweight web toolkit 不少人一直都在詢問有沒有好的 #Golang Web toolkit ,這個 goserv 看起來還不錯.剛剛在 05/03 達到 1.0 正式版的 goserv 提供以下的功能: Fast & Lightweight Flexible Routing Centralized Error handling 跟原生 net/http 是相容的 並且可以很快速的架設 File Server,也可以很快速地透過 MongoDB 架設 REST Server 大家可以看看有沒有符合需求 Go and Quasar: a comparison of style and performance Go Channel與 Java Quasar 的執行效率比較. 看起來 Go chennal 還是好上不少. Solving ring-shaped problems with Go’s container/ring 想要解決環狀鏈結的相關問題需要自己實現相關的資料結構嗎? 其實 Golang 本身就有提供 container/ring (鏈結) 可以幫助你解決類似的問題. dgryski/go-tsz: Time series compression algorithm from Facebook’s Gorilla paper 從 Facebook 的 Gorilla 論文中找出的時間序列比對演算法. 值得找時間好好學習. 更多細節在這裡可以看. Go Testing Technique: Testing JSON HTTP Requests The Micro Bot - ChatOps for microservices jsgoecke/tesla: Provides a wrapper around the API to easily query and command a...