func SplitModelName(name string) (string, names.UserTag, error) {
	i := strings.IndexRune(name, '/')
	if i < 0 {
		return "", names.UserTag{}, errors.NotValidf("unqualified model name %q", name)
	}
	owner := name[:i]
	if !names.IsValidUser(owner) {
		return "", names.UserTag{}, errors.NotValidf("user name %q", owner)
	}
	name = name[i+1:]
	return name, names.NewUserTag(owner), nil
}
// SplitModelName splits a qualified model name into the model and owner
// name components.
SplitModelName splits a qualified model name into the model and owner
name components.
// SplitModelName splits a qualified model name into the model and owner // name components .
func SplitModelName(name string) (string, names.UserTag, error) {
	i := strings.IndexRune(name, '/')
	if i < 0 {
		return "", names.UserTag{}, errors.NotValidf("unqualified model name %q", name)
	}
	owner := name[:i]
	if !names.IsValidUser(owner) {
		return "", names.UserTag{}, errors.NotValidf("user name %q", owner)
	}
	name = name[i+1:]
	return name, names.NewUserTag(owner), nil
}
func SplitModelName ( name string ) ( string , names . UserTag , error ) { i := strings . IndexRune ( name , '/' ) if i < 0 { return " " , names . UserTag { } , errors . NotValidf ( " " , name ) } owner := name [ : i ] if ! names . IsValidUser ( owner ) { return " " , names . UserTag { } , errors . NotValidf ( " " , owner ) } name = name [ i + 1 : ] return name , names . NewUserTag ( owner ) , nil }
SplitModelName splits a qualified model name into the model and owner
name components.
SplitModelName splits a qualified model name into the model and owner name components .