Embed static assets with go-bindata

This commit is contained in:
khlieng 2015-04-22 22:58:20 +02:00
parent 883ff2b081
commit 891f7b2f10
3 changed files with 599 additions and 2 deletions

597
bindata.go Normal file

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,6 @@ var routes = (
</Route>
);
Router.run(routes, Router.HistoryLocation, function(Handler) {
Router.run(routes, Router.HistoryLocation, (Handler) => {
React.render(<Handler />, document.body);
});

View File

@ -94,7 +94,7 @@ func main() {
channelStore = storage.NewChannelStore()
sessions = make(map[string]*Session)
fs = http.FileServer(http.Dir("assets"))
fs = http.FileServer(assetFS())
files = []File{
File{"/bundle.js", "text/javascript"},