An interjection can also be named "an exclamation." It is a way to express oneself to display emotions. These words usually end with exclamation marks when they stand alone. If the word "Golly" was a so-called, "one word sentence," then it would end with an exclamation, particularly of surprise.