I think good friends can share both happiness and sadness with you. Especially when you meet difficulties, they can extend both hands and help you and let you feel consoled.
Bad friends, when you share moments of your life, will cause lots of hazy and bad circumstances. So, you must carefully choose friends in life.