If f(x)={x+1,x>02−x,x≤0 and g(x)=⎧⎪⎨⎪⎩x+3, x<1 x2−2x−2,1≤x<2x−5, x≥2 , then the value of limx→0 g(f(x)) is