String returns a string representation of the slice
()
| 100 | |
| 101 | // String returns a string representation of the slice |
| 102 | func (s slice) String() string { |
| 103 | parts := make([]string, len(s)) |
| 104 | |
| 105 | for i, v := range s { |
| 106 | parts[i] = v.String() |
| 107 | } |
| 108 | |
| 109 | return fmt.Sprintf("%s[%s]", s.Mode(), strings.Join(parts, " ")) |
| 110 | } |
| 111 | |
| 112 | // dmap represents a difference between two maps |
| 113 | type dmap map[string]Diff |