assetfs/filesystem.go
func (fs *AssetFileSystem) RegisterPath(pth string) error {
	if _, err := os.Stat(pth); !os.IsNotExist(err) {
		var existing bool
		for _, p := range fs.paths {
			if p == pth {
				existing = true
				break
			}
		}
		if !existing {
			fs.paths = append(fs.paths, pth)
		}
		return nil
	}
	return errors.New("not found")
}
func (fs *AssetFileSystem) RegisterPath(pth string) error {
	if _, err := os.Stat(pth); !os.IsNotExist(err) {
		var existing bool
		for _, p := range fs.paths {
			if p == pth {
				existing = true
				break
			}
		}
		if !existing {
			fs.paths = append(fs.paths, pth)
		}
		return nil
	}
	return errors.New("not found")
}
// RegisterPath register view paths