I just want to buy a small camera for taking some indoor and outdoor pictures.
The GoPro is a tiny ruggedized video camera, designed mainly for helmet camera style mounting. It shoots stills, but this feature is only really designed as a last resort if you can only take one camera with you. The GoPro has no screen or viewfinder so you have no idea what you're going to get in the frame when composing your shots.
Unless you also need to shoot video, you'd get much better results from a small digital stills camera. For a list of recent ultra-compact cameras and their features see here:
A GoPro is good at what it does in a dedicated range of applications.
It is hard to use as a general purpose camera and/or will cost much more to configure it to do so.
If you need need ruggedness, waterproofness and smallish size and weight then its value for money is reasonable.
If you don't need the first two then you can get far more for your money or pay far less for what you get by buying something else.