\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{linegoal}
\usepackage{lipsum}
\begin{document}
Ceci est un essai~~\begin{minipage}{\linegoal} \lipsum[1]
\end{minipage}
\end{document}