Embed static assets with go-bindata
This commit is contained in:
parent
883ff2b081
commit
891f7b2f10
3 changed files with 599 additions and 2 deletions
597
bindata.go
Normal file
597
bindata.go
Normal file
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||
});
|
2
main.go
2
main.go
|
@ -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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue