Examples of using "彼はまさに寝に行こうというところだった。" in a sentence and their english translations:
He was just on the verge of going to sleep.