// Finds the index of an item in the topics
Finds the index of an item in the topics
// Finds the index of an item in the topics
func (sub subscription) indexOf(element string) int {
	for k, v := range sub.topics {
		if element == v {
			return k
		}
	}
	return -1
}
func ( sub subscription ) indexOf ( element string ) int { for k , v := range sub . topics { if element == v { return k } } return - 1 }
Finds the index of an item in the topics
Finds the index of an item in the topics