(a, b []string)
| 682 | } |
| 683 | |
| 684 | func stringSlicesEqual(a, b []string) bool { |
| 685 | if len(a) != len(b) { |
| 686 | return false |
| 687 | } |
| 688 | for i := range a { |
| 689 | if a[i] != b[i] { |
| 690 | return false |
| 691 | } |
| 692 | } |
| 693 | return true |
| 694 | } |
| 695 | |
| 696 | // orEmptyStrings normalizes a nil slice to a non-nil empty slice so the |
| 697 | // field renders as [] rather than null — matching the legacy orEmptySlice |