func (s *State) Term(term ...int) int {
	s.mu.Lock()
	defer s.mu.Unlock()
	if len(term) > 0 {
		s.term = term[0]
	}
	return s.term
}
// Term will return the states current term or if
// an argument is passed in will set the term
Term will return the states current term or if
an argument is passed in will set the term
// Term will return the states current term or if // an argument is passed in will set the term
func (s *State) Term(term ...int) int {
	s.mu.Lock()
	defer s.mu.Unlock()
	if len(term) > 0 {
		s.term = term[0]
	}
	return s.term
}
func ( s * State ) Term ( term ... int ) int { s . mu . Lock ( ) defer s . mu . Unlock ( ) if len ( term ) > 0 { s . term = term [ 0 ] } return s . term }
Term will return the states current term or if
an argument is passed in will set the term
Term will return the states current term or if an argument is passed in will set the term