Diff is the common interface for the other types in this package. A Diff represents the difference (or lack of difference) between two values
| 38 | // |
| 39 | // A Diff represents the difference (or lack of difference) between two values |
| 40 | type Diff interface { |
| 41 | // Mode represents the type of change in a Diff |
| 42 | Mode() Mode |
| 43 | |
| 44 | // String returns a string representation of the Diff |
| 45 | String() string |
| 46 | |
| 47 | // Format returns a pretty-printed representation of the Diff |
| 48 | // The long flag determines whether to produce long or short output |
| 49 | Format(bool) string |
| 50 | |
| 51 | // Value returns the value represented by the Diff |
| 52 | Value() interface{} |
| 53 | } |
| 54 | |
| 55 | // value represents a difference between values of any type |
| 56 | type value struct { |
no outgoing calls
no test coverage detected