breastfeeding guilt

so I gave birth to my son on Thanksgiving and I had planned to breastfeed so once he was here the nurse helped me get him to latch for the first feeding and everything seemed great. well once we got in the actual room and he came back from the nursery I couldn't get him to latch again and of I did it wasn't a good latch so I would try to correct it. the night time nursery nurses were of absolutely no help to me and it really felt like she was judging me. when I finally gave up and asked for formula she made me feel worse. then the next day between circumsizing him, visitors, pictures and just being exhausted I never had a chance to meet with the lactation consultant. by the time we finally came home I had all but given up we had more visitors all day for the first few days no one seems to understand if you go to the room and shut the door to knock before entering so I started using the formula o had samples of. when my milk finally came in and we were left to ourselves he was no longer interested in the boob and just wanted a bottle. around 5 or 6 weeks it hit me that I felt like I have failed him by giving up so quick and easy and by then my milk was almost dried up now at 9 weeks it's completely gone and I can't get rid of this feeling that I didn't do everything I could have