Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 734 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 734 Bytes

stringfs

Stringfs is a go package that encodes a net/http filesystem into a string.

⚠️This package is deprecated. You should use the embed package instead of this one. It is better in every way.

Usage

Run go get github.com/paulhammond/stringfs to install.

To use stringfs, first declare a variable in your source code:

var fileSystem http.FileSystem = http.Dir("./example/assets")

Then encode the contents of directory into a string using the stringfs command:

stringfs example/assets example/assets.go

Full documentation is available through godoc.

License

MIT license, see LICENSE.txt for details.