func createTags(tqb models.TagReaderWriter, n int, o int) error {
	const namePlain = "Name"
	const nameNoCase = "NaMe"

	name := namePlain

	for i := 0; i < n+o; i++ {
		index := i

		if i >= n { // i<n tags get normal names
			name = nameNoCase       // i>=n tags get dup names if case is not checked
			index = n + o - (i + 1) // for the name to be the same the number (index) must be the same also
		} // so count backwards to 0 as needed
		// tags [ i ] and [ n + o - i - 1  ] should have similar names with only the Name!=NaMe part different

		tag := models.Tag{
			Name:          getTagStringValue(index, name),
			IgnoreAutoTag: getIgnoreAutoTag(i),
		}

		created, err := tqb.Create(tag)

		if err != nil {
			return fmt.Errorf("Error creating tag %v+: %s", tag, err.Error())
		}

		// add alias
		alias := getTagStringValue(i, "Alias")
		if err := tqb.UpdateAliases(created.ID, []string{alias}); err != nil {
			return fmt.Errorf("error setting tag alias: %s", err.Error())
		}

		tagIDs = append(tagIDs, created.ID)
		tagNames = append(tagNames, created.Name)
	}

	return nil
}
//createTags creates n tags with plain Name and o tags with camel cased NaMe included
createTags creates n tags with plain Name and o tags with camel cased NaMe included
// createTags creates n tags with plain Name and o tags with camel cased NaMe included
func createTags(tqb models.TagReaderWriter, n int, o int) error {
	const namePlain = "Name"
	const nameNoCase = "NaMe"
	name := namePlain
	for i := 0; i < n+o; i++ {
		index := i
		if i >= n { 
			name = nameNoCase       
			index = n + o - (i + 1) 
		} 
		tag := models.Tag{
			Name:          getTagStringValue(index, name),
			IgnoreAutoTag: getIgnoreAutoTag(i),
		}
		created, err := tqb.Create(tag)
		if err != nil {
			return fmt.Errorf("Error creating tag %v+: %s", tag, err.Error())
		}
		alias := getTagStringValue(i, "Alias")
		if err := tqb.UpdateAliases(created.ID, []string{alias}); err != nil {
			return fmt.Errorf("error setting tag alias: %s", err.Error())
		}
		tagIDs = append(tagIDs, created.ID)
		tagNames = append(tagNames, created.Name)
	}
	return nil
}
func createTags ( tqb models . TagReaderWriter , n int , o int ) error { const namePlain = " " const nameNoCase = " " name := namePlain for i := 0 ; i < n + o ; i ++ { index := i if i >= n { name = nameNoCase index = n + o - ( i + 1 ) } tag := models . Tag { Name : getTagStringValue ( index , name ) , IgnoreAutoTag : getIgnoreAutoTag ( i ) , } created , err := tqb . Create ( tag ) if err != nil { return fmt . Errorf ( " " , tag , err . Error ( ) ) } alias := getTagStringValue ( i , " " ) if err := tqb . UpdateAliases ( created . ID , [ ] string { alias } ) ; err != nil { return fmt . Errorf ( " " , err . Error ( ) ) } tagIDs = append ( tagIDs , created . ID ) tagNames = append ( tagNames , created . Name ) } return nil }
createTags creates n tags with plain Name and o tags with camel cased NaMe included
createTags creates n tags with plain Name and o tags with camel cased NaMe included
// i<n tags get normal names // i>=n tags get dup names if case is not checked // for the name to be the same the number (index) must be the same also // so count backwards to 0 as needed // tags [ i ] and [ n + o - i - 1  ] should have similar names with only the Name!=NaMe part different // add alias