package fixture // Not compiled: testdata is ignored by the go tool. import ( "fmt" "strings" ) // The elements of MV-N2 and MV-N3, built here, and the joins that make // their lists, passed to the head's function (one directly, one through a // local variable). func refuseAmbiguous(seg string, sqids, names []string) string { out := make([]string, len(sqids)) for i := range sqids { out[i] = fmt.Sprintf("%s (%q)", sqids[i], names[i]) } return ambiguous(seg, strings.Join(out, ", ")) } func refuseSeveral(region string, sqids, names []string) string { out := make([]string, len(sqids)) for i := range sqids { out[i] = fmt.Sprintf("%s (%q)", sqids[i], names[i]) } joined := strings.Join(out, ", ") return several(region, joined) }