code: func BGPStateByName(name string) BGPState {
  	name = strings.ToLower(name)
  	for s := range stateNames {
  		if strings.ToLower(stateNames[s]) == name {
  			return s
  		}
  	}
  	return BGPStateUnknown
  }
docs: // BGPStateByName returns the BGP state that corresponds to the given name.