// NewModel returns a newly initialized Model instance.
NewModel returns a newly initialized Model instance.
// NewModel returns a newly initialized Model instance .
func NewModel(fs http.FileSystem, path string) (model.Model, error) {
	f, err := fs.Open(path)
	if err != nil {
		return nil, err
	}
	defer f.Close()
	b, err := ioutil.ReadAll(f)
	if err != nil {
		return nil, err
	}
	return model.NewModelFromString(string(b))
}
func NewModel ( fs http . FileSystem , path string ) ( model . Model , error ) { f , err := fs . Open ( path ) if err != nil { return nil , err } defer f . Close ( ) b , err := ioutil . ReadAll ( f ) if err != nil { return nil , err } return model . NewModelFromString ( string ( b ) ) }
NewModel returns a newly initialized Model instance.
NewModel returns a newly initialized Model instance .