Skip to content

beyang/frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frontend

Common frontend code.

Installation

go get -u github.com/shurcooL/frontend/...
go get -u -d -tags=js github.com/shurcooL/frontend/...

Testing Locally

For packages that have any _test.html files, you can use gopherjs_serve_html to serve said test. For example:

cd ./table-of-contents/
gopherjs_serve_html main_test.html    # Serves main_html.html at http://localhost:8080/index.html.
open http://localhost:8080/index.html # Open http://localhost:8080/index.html in browser.

Changes to .go code are reloaded on every request, so you can make changes, refresh browser to see new version. Watch browser console for errors.

About

Common frontend code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 84.5%
  • Go 14.7%
  • CSS 0.8%