Use embed instead of rice

This commit is contained in:
David Stotijn
2021-04-26 09:24:45 +02:00
parent ca3a729c36
commit 569f7bc76f
10 changed files with 55 additions and 97 deletions

View File

@ -44,14 +44,14 @@ and web based admin interface.
#### Prerequisites
- [Go](https://golang.org/)
- [Go 1.16](https://golang.org/)
- [Yarn](https://yarnpkg.com/)
- [go.rice](https://github.com/GeertJohan/go.rice)
Hetty depends on SQLite (via [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3))
and needs `cgo` to compile. Additionally, the static resources for the admin interface
(Next.js) need to be generated via [Yarn](https://yarnpkg.com/) and embedded in
a `.go` file with [go.rice](https://github.com/GeertJohan/go.rice) beforehand.
(Next.js) need to be generated via [Yarn](https://yarnpkg.com/). The generated
files will be embedded (using the [embed](https://golang.org/pkg/embed/) package)
when you use the `build` Makefile target.
Clone the repository and use the `build` make target to create a binary: