main: embed assets from www to allows PWD to run standalone (#425)

Generate these assets in config because this package is imported by
most.

Add internal/addgenheader as a simple helper because go-bindata doesn't
output the write header.

Also update test CI workflow to regenerate and check commit is clean.
This commit is contained in:
Paul Jolly
2020-10-06 14:33:11 +01:00
committed by GitHub
parent db603ec953
commit 1e0eb1f329
9 changed files with 591 additions and 1 deletions

1
go.mod
View File

@@ -34,6 +34,7 @@ require (
github.com/hashicorp/golang-lru v0.5.1
github.com/inconshreveable/go-vhost v0.0.0-20160627193104-06d84117953b
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 // indirect
github.com/jteeuwen/go-bindata v3.0.7+incompatible
github.com/juju/ratelimit v1.0.1 // indirect
github.com/mailru/easyjson v0.0.0-20171120080333-32fa128f234d // indirect
github.com/miekg/dns v0.0.0-20171019064225-822ae18e7187