How to create a program that controls the speed of a servo using a potentiometer using arduino?

where can I see that? sorry newbie here, I'm not yet familiar where I can find this and that.