Skip to content

hfeeki/resources-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resources-go

An assets-loading package for Go.

Applications can use this package to load assets from zip-files (incuding a zip file bundled in the executable), the filesystem, or other sources through a single interface. Also allows for the building of a search path to access files sequentially through a set of application defined locations.

Build Status

Installation

Version 1:

go get github.com/cookieo9/resources-go/v1/resources

Version 2:

go get github.com/cookieo9/resources-go/v2/resources

Documentation

The autogenerated online documentation can be found at:

Embedding Zip-Files

To embed a zip file into your executable do the following:

  • Create executable (eg: go build -o myApp)
  • Create zip file (eg: zip -r assets.zip assets)
  • Append zip file to executable (eg: cat assets.zip >> myApp)
  • Adjust the offsets in the zip header (optional) (zip -A myApp)

License

http://cookieo9.mit-license.org/2012

About

An assets-loading package for Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published