Finely chop the green onion and onion.
Crack the eggs into a bowl and whisk them.
Heat cooking oil in a pan and sauté the green onion until fragrant.
Add the chopped onion and stir-fry together.
Add the rice and stir-fry evenly.
Pour in the beaten eggs and quickly mix while stir-frying.
Season with salt and pepper.