Hi,
Do you have a midwife? You should really talk this through with her before the baby is born an she should help you with the first attempts because even if everything goes well, it is not easy to latch on the baby if you have no experience at all.
If there are complications, you might need a lactation consultant. If you want to give birth in a hospital, the best thing is to choose a WHO certified breastfeeding-friendly one, as they have consultants there - if this is not an option, look up the number of a consultant before the birth and ring her if there are any problems.
It is important to know that over 90% of women are physically able to breastfeed, the reason why so many women "can't" breastfeed is that they are poorly informed.
The baby is born with an instinct to suck (if this instinct is unincisive -> Lactation consultant) but it has to learn the right "technique". That's why it can be painful in the beginning. If you give your baby a pacifier or a baby bottle, it learns the wrong technique and breastfeeding becomes more painful or the baby rejects the breast altogether. This is especially critical in the first 1-2 month.
Most doctors, nurses and even some midwifes are not really breast-feeding friendly or at least not well informed. Some are very quick in recomending aditional feeding of formula. This is not good as it destroys the balance of supply and demand (if your baby drinks formula instead of breastmilk, you will produce less) and can lead to a sucking irritation. Before you feed aditional formula, ask your lactation consultant if it is really neccesary. And don't feed it from a bottle, there are methods, that are less likely to produce a sucking irritation.
The most important condition for a successful breastfeeding relation is bonding with your baby! Wear it in a wrap close to your body, let it sleep in your bed, let it lie on your naket breast, ect). It is also important to be relaxed and to eat and drink well.
If your baby can drink whenever it wants, the supply of the milk will adapt to the demand. Don't listen to people who tell you, you should only feed every x hours. Attend the early signs of hunger (open mouth, baby "searches" your breast) and if possible feed it before it starts to cry.
This page might also help you: https://www.llli.org/
From a personal view: I found the first two weeks or so hart: After a painful birth, the last thing that I needed was more pain from breastfeeding and my baby wanted to drink all day long. On top of this, I had a galactostasia. But I weathered through all and it was soooo worth it. Breastfeeding is so beautiful for both, mother and child. So harmonious and one of the best methods of bonding. And: It is the easiest way to comfort the child or put it to sleep! I don't have to worry when my son is picky with his food because mommy milk contains all he needs. I don't have to carry anything with me when I go out. When I wear him in a wrap, he can even drink, while I'm walking!