Registry / utility / leaanthony-debme

leaanthony-debme

JSON →
library1.2.1gogounverified

A Go library for embedding files and directories into binaries.

go get github.com/leaanthony/debme
INSTALL
IMPORT
SIG · LEAANTHONY-DEBME
L
leaanthony-debme
utilitygov1.2.1
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.

debme
github.com/leaanthony/debme

Embed a directory named 'data' and read a file from it.

package main import ( "fmt" "github.com/leaanthony/debme" ) func main() { fs, err := debme.FS("data", nil) if err != nil { panic(err) } data, _ := fs.ReadFile("config.json") fmt.Println(string(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
leaanthony-debme — go get leaanthony-debme · libregistry