No sleep breast feeding

Domo
Seems like through out the night im breastfeeding every hour because he decides to wake up. The time between is spent comforting him through gas pains and putting him back to sleep. As a breastfeeding mom how do i get him to sleep at night. This leaves me with zero hours of sleep. Im close to the point of putting him on formula.