rakyll / statik

Embed files into a Go executable
Apache License 2.0
3.76k stars 224 forks source link

add ziptree package for sharing code #63

Open Songmu opened 5 years ago

Songmu commented 5 years ago

Currently, there are almost the same code for zipping is written in statik.go and fs_test.go, and it is difficult to prove the correctness of the test.

Therefore, I create the ziptree package to share code and utilize it in statik.go and fs_test.go.

Also, the ziptree package's public interfaces are useful for writing custom code for "go generate" to Register original data and create New http.FileSystem, for example, when we want to create multiple file systems.

How do you think?