The function \(g\) is defined by \(g(x)=|x-1|-2 \). If \(g(a)=g(0)\) and \(a>0\), what is the value of \(a\)?
Find \(g(a)\) and \(g(0)\).
Setting \(g(a)=g(0) \):
Since \(a>0, a=\boxed{2} \)