{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["wip","www"],"comment":"Working with resources such as html, js, css, images, templates","compare":null,"dependentCount":null,"description":"TODO: Adjust the following lines from README.md\n\n# go.rice\n\n[![Build Status](https://travis-ci.org/GeertJohan/go.rice.png)](https://travis-ci.org/GeertJohan/go.rice)\n[![Godoc](https://img.shields.io/badge/godoc-go.rice-blue.svg?style=flat-square)](https://godoc.org/github.com/GeertJohan/go.rice)\n\ngo.rice is a [Go](http://golang.org) package that makes working with resources such as html,js,css,images and templates easy. During development `go.rice` will load required files directly from disk. Upon deployment it's easy to add all resource files to a executable using the `rice` tool, without changing the source code for your package. go.rice provides methods to add resources to a binary in different scenarios.\n\n## What does it do\n\nThe first thing go.rice does is finding the correct absolute path for your resource files. Say you are executing a binary in your home directory, but your `html-files` are in `$GOPATH/src/yourApplication/html-files`. `go.rice` will lookup the correct path for that directory (relative to the location of yourApplication). All you have to do is include the resources using `rice.FindBox(\"html-files\")`.\n\nThis works fine when the source is available to the machine executing the binary, which is the case when installing the executable with `go get` or `go install`. But it does not work when you wish to provide a single binary without source. This is where the `rice` tool comes in. It analyses source code and finds call's to `rice.FindBox(..)`. Then it adds the required directories to the executable binary, There are two strategies to do this. You can 'embed' the assets by generating go source code and then compile them into the executable binary, or you can 'append' the assets to the executable binary after compiling. In both cases the `rice.FindBox(..)` call detects the embedded or appended resources and load those, instead of looking up files from disk.\n\n## Installation\n\nUse `go get` to install the package the `rice` tool.\n\n```bash\ngo get github.com/GeertJohan/go.rice\ngo get github.com/GeertJohan/go.rice/rice\n...","flavors":[],"html":"https://daemonports.org/netbsd/wip/go-rice/","kind":"port","lastUpdate":null,"license":["2-clause-bsd"],"maintainer":"kamelderouiche@yahoo.com","name":"go-rice","newest":false,"newestVersion":null,"noVulnData":false,"origin":"wip/go-rice","otherSystems":[],"packages":null,"pkgName":"go-rice-1.0.2nb3","related":null,"repository":"pkgsrc-wip","requiredBy":[],"requiredByCount":0,"runDepends":[],"status":null,"system":"netbsd","systemLabel":"NetBSD","version":"1.0.2nb3","versions":null,"vulnerabilities":null,"www":"https://github.com/GeertJohan/go.rice/"}
