Humanity

Edit the world by your favorite way

2017-09-02から1日間の記事一覧

Go の net/http で Vue.js / Angular 1 などの HTML5 history mode に対応する

Go

type html5Handler struct { fs http.FileSystem routes []staticRoute } // Look up path when Vue.js HTML5 history mode is enabled // https://router.vuejs.org/ja/essentials/history-mode.html func enableHTML5Mode(fs http.FileSystem, routes []st…