The correct answer is C. was going.
The sentence is in the past tense, so we need to use a past tense verb. The other options are not in the past tense.
A. went is in the simple past tense, but it does not make sense in the context of the sentence. The sentence is about a period of time, not a specific event.
B. will go is in the future tense, but it does not make sense in the context of the sentence. The sentence is about a time in the past, not the future.
D. has gone is in the present perfect tense, but it does not make sense in the context of the sentence. The sentence is about a time in the past, not the present.
E. had been going is in the past perfect progressive tense, but it does not make sense in the context of the sentence. The sentence is about a time in the past, not a period of time in the past.
Therefore, the correct answer is C. was going.