Most people don’t eat directly before they workout, for fear they will interfere with digestion, or get an upset stomach if they “stir up” the contents of the stomach too quickly so soon after ingesting food. Once in a while, to keep my blood sugar steady, since I eat once every few hours, I will have a small snack - say a small snack bar or banana about a half hour before my workout, but never anything heavy because it is quite possible your stomach will be upset by that.
I recently heard the better thing to eat before working out is actually a food that is more carb-central, instead of protein-central. The reason being that the body burns off carbs first, and since you just ate carbs, you will experience the benefit of a faster burning food, and more fuel for your workout instead of protein, which may actually stall your workout or make you feel sluggish.
The absolute worst thing you can eat right before a workout is refined sugar - say a candy bar or some other sort of refined sugar. This will definitely cause a quick energy surge, only to let you down before your workout is even over, since refined sugar is burned off so quickly and results in a steep dropoff in energy after it burns off. If you’re burning it quickly working out, you may start to feel weak halfway through, or sooner.