// Load loads view configurations.
Load loads view configurations.
// Load loads view configurations .
func (v *CustomModel) Load(path string) error {
	raw, err := ioutil.ReadFile(path)
	if err != nil {
		return err
	}
	var in CustomModel
	if err := yaml.Unmarshal(raw, &in); err != nil {
		return err
	}
	v.K9s = in.K9s
	v.fireConfigChanged()
	return nil
}
func ( v * CustomModel ) Load ( path string ) error { raw , err := ioutil . ReadFile ( path ) if err != nil { return err } var in CustomModel if err := yaml . Unmarshal ( raw , & in ) ; err != nil { return err } v . K9s = in . K9s v . fireConfigChanged ( ) return nil }
Load loads view configurations.
Load loads view configurations .