func (f *FI) ModTime() time.Time {
	return fiTime
}
ModTime filetime 4
package assets
import (
	"net/http"
	"os"
	"time"
	"github.com/rakyll/statik/fs"
	_ "github.com/Qitmeer/qitmeer-wallet/assets/statik"
)
func GetStatic() (http.FileSystem, error) {
	return fs.New()
}
type FilterFunc func() []byte
type MyStatic struct {
	fs      http.FileSystem
	filters map[string]FilterFunc
}
func NewMyStatic(fs http.FileSystem) *MyStatic {
	return &MyStatic{
		fs:      fs,
		filters: make(map[string]FilterFunc),
	}
}
func (s *MyStatic) Open(name string) (http.File, error) {
	if f, ok := s.filters[name]; ok {
		return NewHTTPFile(name, f()), nil
	}
	return s.fs.Open(name)
}
func (s *MyStatic) AddFilter(name string, f FilterFunc) {
	s.filters[name] = f
	return
}
func NewHTTPFile(name string, data []byte) *HTTPFile {
	hf := &HTTPFile{}
	hf.name = name
	hf.data = data
	return hf
}
type HTTPFile struct {
	FI
}
func (h *HTTPFile) Close() error {
	return nil
}
func (h *HTTPFile) Read(p []byte) (n int, err error) {
	n = copy(p, h.data)
	return
}
func (h *HTTPFile) Seek(offset int64, whence int) (int64, error) {
	return 0, nil
}
func (h *HTTPFile) Readdir(count int) ([]os.FileInfo, error) {
	return []os.FileInfo{}, nil
}
func (h *HTTPFile) Stat() (os.FileInfo, error) {
	return h, nil
}
var fiTime = time.Now()
type FI struct {
	name string
	data []byte
}
func (f *FI) Name() string {
	return f.name
}
func (f *FI) Size() int64 {
	return int64(len(f.data))
}
func (f *FI) Mode() os.FileMode {
	return os.ModePerm
}