// SetStep sets the current step
SetStep sets the current step
// SetStep sets the current step
func (r *Register) SetStep(s RegStep) {
	if r.first == RegStep("") {
		_, ok := r.steps[s]
		if ok {
			r.first = s
		} else {
			glog.Errorf("unexpected first step: %q", r.first)
		}
	}
	r.current = s
}
func ( r * Register ) SetStep ( s RegStep ) { if r . first == RegStep ( " " ) { _ , ok := r . steps [ s ] if ok { r . first = s } else { glog . Errorf ( " " , r . first ) } } r . current = s }
SetStep sets the current step
SetStep sets the current step