Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.