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.
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?