現在由於 Single Page Application 盛行,還有多平台的介接,在後端常簡化成只有開發

Api 的方式來使用,用 Golang 的標準函式,幾乎就可以解決了,有時候偷懶一下,或是想試一下其他開發的想法,及函式庫

在一般的開發情境下,我們可以用 gin 或是 fresh

來做類似 server 端 live reload ,開發完成後,就用 gox 編譯目標平台的執行程式,有了這一個 vim-go 的 Vim plugin 後,在
Vim 裡,就像是用 IDE 開發一樣,不用再打 import 了

fresh 的 terminal 訊息處理,有顏色,我很不爭氣的就用 fresh


另外,Golang 除了強大的標準函式庫,立即(即戰力呀,鄉親) 可以做 Api server 的開發外,還有很多小而美的框架,或是小函式可以用

mux

https://github.com/bmizerany/pat 簡單至極的 router Mutex,可能你直接看 source code 比看文件快

https://github.com/julienschmidt/httprouter

https://github.com/jadekler/git-go-websiteskeleton Skeleton example

mini framework

有 Martini https://github.com/go-martini/martini Magic King, Express.js like

作者為了中和平反一下 gopher 的意見,另外寫了 Negroni Express.js like

gin-gonic 算是簡化版的 martini 然後再把 inject 的魔法拿掉,效能提昇很多

最早開始的,gorilla http://www.gorillatoolkit.org/ 很多人,就是用他的 mux 和 session module 來用算是小而美的代表作,喜歡,金剛,首選

https://github.com/rcrowley/go-tigertonic tiny, small

https://github.com/zenazn/goji

http://fitstar.github.io/falcore/ pipeline king

https://github.com/gocraft/web

https://github.com/pilu/traffic fresh 的作者寫的

另外還有幾個比較大,且完整的框架,比較像是一條龍的框架,beegorevel

因為,個人掌握度沒到位,所以就只有停在,見習別人程式的階段,另外,也是覺得太大一包,怕吞下去會消化不良,其他還有很多

最後,很不爭氣把其中一個專案試用一下 Goji 了,因為他 terminal 有顏色,這其實還蠻自我矛盾的,有 GUI 的時候,覺得效率不好
喜歡用 terminal,有了 terminal 了以後,對這一種,有顏色的工具,或像是 yeoman 之類,還有可愛的 Mascot 的工具毫無招架之力

fresh



Goji


Yeoman



PS: 這一篇,充滿個人喜好,超不專業,大家要玩的開心最重要