Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/go-cmp
/ newStringer
Function
newStringer
cmp/compare_test.go:112–112 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
110
type
Stringer string
111
112
func
newStringer(s string) fmt.Stringer {
return
(*Stringer)(&s) }
113
func
(s Stringer) String() string {
return
string(s) }
114
115
type
test
struct
{
Callers
1
reporterTests
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected