Baby and breastfeeding

With my first baby I wasn't able to breastfeed past leaving the hospital. So now I'm having to learn how to do this. I could really use some encouragement, last night (our first night home) I really had a tough night. If I would have had formula I would have given up.