func state2(ctx context.Context, transitioner machine.Transitioner) { fmt.Println("this is state 2") transitioner.Next(state3) }