Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrander/gingopherjs
A gin-gonic route for developing client side javascript with gopherjs
https://github.com/abrander/gingopherjs
gin-gonic gopherjs
Last synced: about 2 months ago
JSON representation
A gin-gonic route for developing client side javascript with gopherjs
- Host: GitHub
- URL: https://github.com/abrander/gingopherjs
- Owner: abrander
- License: mit
- Created: 2016-01-30T20:57:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-18T07:41:53.000Z (over 8 years ago)
- Last Synced: 2024-06-20T12:52:39.909Z (7 months ago)
- Topics: gin-gonic, gopherjs
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gingopherjs
A gin-gonic route for developing client side javascript with gopherjs.Can be used like this:
```go
import (
"github.com/gin-gonic/gin"
"github.com/abrander/gingopherjs"
)func main() {
router := gin.Default()
g, _ := gingopherjs.New("github.com/me/myrepo")
router.GET("/client.js", g.Handler)
router.Run(":8080")
}
```Please note that this will compile your Javascript at *every* request. It's only useful for development and should never be exposed on a public webserver.