embed.go 262 B

123456789101112131415161718
  1. package seo
  2. import (
  3. "embed"
  4. "github.com/qor5/web"
  5. )
  6. //go:embed v_seo
  7. var box embed.FS
  8. func SeoJSComponentsPack() web.ComponentsPack {
  9. c, err := box.ReadFile("v_seo/vue-seo.min.js")
  10. if err != nil {
  11. panic(err)
  12. }
  13. return web.ComponentsPack(string(c))
  14. }