How to Control My Anger with Kids?

I feel my life is so empty and I have begun to lose control my anger and snap at my kids sometimes. It is not their fault and I try to apologize when I do so.