statik/misc.go
func ReadFile(name string) ([]byte, error) {
	fs, err := fs.New()
	if err != nil {
		return nil, ErrOpenFS
	}

	file, err := fs.Open(name)
	if err != nil {
		return nil, ErrOpenFile
	}
	defer file.Close()

	data, err := ioutil.ReadAll(file)
	if err != nil {
		return nil, ErrReadFile
	}

	return data, nil
}
func ReadFile(name string) ([]byte, error) {
	fs, err := fs.New()
	if err != nil {
		return nil, ErrOpenFS
	}

	file, err := fs.Open(name)
	if err != nil {
		return nil, ErrOpenFile
	}
	defer file.Close()

	data, err := ioutil.ReadAll(file)
	if err != nil {
		return nil, ErrReadFile
	}

	return data, nil
}
func ReadFile ( name string ) ( [ ] byte , error ) { fs , err := fs . New ( ) if err != nil { return nil , ErrOpenFS } file , err := fs . Open ( name ) if err != nil { return nil , ErrOpenFile } defer file . Close ( ) data , err := ioutil . ReadAll ( file ) if err != nil { return nil , ErrReadFile } return data , nil }
// ReadFile reads a file content from the embedded filesystem.
ReadFile reads a file content from the embedded filesystem .