func ModuleOwnerForString(path string) (ModuleOwner, error) {
	slashSplit := strings.Split(path, "/")
	if len(slashSplit) != 2 {
		return nil, newInvalidModuleOwnerStringError(path)
	}
	remote := strings.TrimSpace(slashSplit[0])
	if remote == "" {
		return nil, newInvalidModuleIdentityStringError(path)
	}
	owner := strings.TrimSpace(slashSplit[1])
	if owner == "" {
		return nil, newInvalidModuleIdentityStringError(path)
	}
	return NewModuleOwner(remote, owner)
}
// ModuleOwnerForString returns a new ModuleOwner for the given string.
//
// This parses the path in the form remote/owner.
ModuleOwnerForString returns a new ModuleOwner for the given string.

This parses the path in the form remote/owner.
// ModuleOwnerForString returns a new ModuleOwner for the given string . // // This parses the path in the form remote / owner .
func ModuleOwnerForString(path string) (ModuleOwner, error) {
	slashSplit := strings.Split(path, "/")
	if len(slashSplit) != 2 {
		return nil, newInvalidModuleOwnerStringError(path)
	}
	remote := strings.TrimSpace(slashSplit[0])
	if remote == "" {
		return nil, newInvalidModuleIdentityStringError(path)
	}
	owner := strings.TrimSpace(slashSplit[1])
	if owner == "" {
		return nil, newInvalidModuleIdentityStringError(path)
	}
	return NewModuleOwner(remote, owner)
}
func ModuleOwnerForString ( path string ) ( ModuleOwner , error ) { slashSplit := strings . Split ( path , " " ) if len ( slashSplit ) != 2 { return nil , newInvalidModuleOwnerStringError ( path ) } remote := strings . TrimSpace ( slashSplit [ 0 ] ) if remote == " " { return nil , newInvalidModuleIdentityStringError ( path ) } owner := strings . TrimSpace ( slashSplit [ 1 ] ) if owner == " " { return nil , newInvalidModuleIdentityStringError ( path ) } return NewModuleOwner ( remote , owner ) }
ModuleOwnerForString returns a new ModuleOwner for the given string.
ModuleOwnerForString returns a new ModuleOwner for the given string .