2018年7月31日 星期二

讓 Gin 的 HTML Template 與 Vue.js 不衝突的方法

        
如果有同時使用 Gin 及 Vue.js 的話,會發現在 HTML Render 變數時會有衝突,
這時候可以在 Vue.js 裡面加一行宣告,改變 Vue.js 呈現變數的方法

delimiters: ['&{', '}']

這樣在 HTML 中就可以使用 &{foo} 的方式去寫 Vue.js 中的變數,不會有衝突了

如何在 golang 裡面引用 gitlab private repo

參考文章:https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository 原文是用 gitlab.company.com 當範例,這邊改成一般帳號...