newFormatter is a helper function to consolidate the logic from the various public methods which take varying config states.
(cs *ConfigState, v interface{})
| 392 | // newFormatter is a helper function to consolidate the logic from the various |
| 393 | // public methods which take varying config states. |
| 394 | func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter { |
| 395 | fs := &formatState{value: v, cs: cs} |
| 396 | fs.pointers = make(map[uintptr]int) |
| 397 | return fs |
| 398 | } |
| 399 | |
| 400 | /* |
| 401 | NewFormatter returns a custom formatter that satisfies the fmt.Formatter |
no outgoing calls
no test coverage detected
searching dependent graphs…