Skip to content
/ blob Public

Go library for building binary blob files, mapping string IDs to byte data.

License

Notifications You must be signed in to change notification settings

gonutz/blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blob

Create Doom style blob files that combine multiple binary blobs into a single file.

The format is as simple as possible, first there is a header that gives each blob a string ID. Then comes the data.

You can create new blobs programmatically (blob.New) and save them to a file (Blob.Write) in a preprocessing step. Later in your program you can read the file (blob.Read) and access the data by their string ID (Blob.GetByID).

If creating a single file is not enough for you, check out bin2go which can take that file and make it into a Go file with a byte array that you can then compile and blob.Read. No more files to deploy, no filepath problems.

Documentation

See the GoDoc for this package for a reference of the API. It is kept minimal for ease of use.

About

Go library for building binary blob files, mapping string IDs to byte data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages