1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-06 08:59:21 +02:00

Added go.rice recipe

This commit is contained in:
Carlos Alexandro Becker
2015-09-16 21:49:41 -03:00
parent e2928d9155
commit 7a7ceeb9c4
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
---
title: go.rice integration
menu:
side:
identifier: "recipe-rice"
parent: recipes
weight: 14
---
[go.rice](https://github.com/GeertJohan/go.rice) is a library that can be used
to package the assets (js, css, etc) inside the binary file, so your app
can still be a single binary.
This folder contains a simple example serving an `index.html` file and a simple
`.js` file with go.rice.
### Server
`server.go`
{{< embed "rice/server.go" >}}
### Maintainers
- [vishr](https://github.com/caarlos0)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/rice)