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

paulhammond/stringfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Go package that encodes a filesystem into a string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages