String implements the Stringer interface for testing invocation of custom stringers on types with non-pointer receivers.
()
| 30 | // String implements the Stringer interface for testing invocation of custom |
| 31 | // stringers on types with non-pointer receivers. |
| 32 | func (s stringer) String() string { |
| 33 | return "stringer " + string(s) |
| 34 | } |
| 35 | |
| 36 | // custom type to test Stinger interface on pointer receiver. |
| 37 | type pstringer string |
nothing calls this directly
no outgoing calls
no test coverage detected