/grandet

another golang assets handler, I made this package just because the others are already dead, and I'm trying to eat my own dogshit...

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

grandet

GoDoc Go Report Card

another golang assets handler, I made this just because the other solutions are already dead.

usage

go get github.com/setekhid/grandet/grandet
grandet \
	-i github.com/setekhid/grandet/assets \
	-d $GOPATH/src/github.com/setekhid/grandet/assets \
	$GOPATH/src/github.com/setekhid/grandet/assets/asset.go.tmpl \
	$GOPATH/src/github.com/setekhid/grandet/assets/grandet.go.tmpl
# gofmt as you like
package assets

func init() {
	// regist all local assets
	(&grandetAssets{}).registAssets()
}
package main

import (
	"github.com/setekhid/grandet/assets"
	"githbu.com/setekhid/grandet/pkg/http"
)

func main() {
	content := assets.Grandet.Asset("asset.go.tmpl")
	_ = content
	file := http.Fs.Open("/github.com/setekhid/grandet/assets/asset.go.tmpl")
	_ = file
}

license

this project is under bsd 3-clause license, see LICENSE file