Registry / utility / gobuffalo-packd

gobuffalo-packd

JSON →
library1.0.2gogounverified

A Go library for packing static files into Go binaries, used by the Buffalo web framework.

go get github.com/gobuffalo/packd
INSTALL
IMPORT
SIG · GOBUFFALO-PACKD
G
gobuffalo-packd
utilitygov1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

packd
github.com/gobuffalo/packd

Creates an in-memory file box and retrieves a file's content.

package main import ( "fmt" "github.com/gobuffalo/packd" ) func main() { box := packd.NewMemoryBox() box.AddString("hello.txt", "Hello, World!") content, _ := box.FindString("hello.txt") fmt.Println(content) }
Debug
Known issues
gotchaPackd is part of the older Buffalo packr ecosystem; consider using Go 1.16's embed package for simpler use cases.
fix
Use Go's built-in //go:embed directive instead of packd for embedding static files.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gobuffalo-packd — go get gobuffalo-packd · libregistry