Telling someone that you are gay (coming out) is challenging. You simply do not know how people would react to your announcement. Would they be happy for you or would they turn their backs against you?
Each one of us has different circumstances. Some are lucky enough, like me, to have supportive friends and family members who would accept you for who you are, while others are not that fortunate.
Whatever is your situation, tell your friends, tell your family members that you are gay. They should love you for who you are not what you are.