Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google/mangle
/ name
Function
name
json2struct/json2struct_test.go:23–29 ·
view source on GitHub ↗
(n string)
Source
from the content-addressed store, hash-verified
21
)
22
23
func
name(n string) ast.Constant {
24
c, err := ast.Name(n)
25
if
err != nil {
26
panic(err)
27
}
28
return
c
29
}
30
31
func
ptr(c ast.Constant) *ast.Constant {
32
return
&c
Callers
1
TestJSONtoStruct
Function · 0.70
Calls
1
Name
Function · 0.92
Tested by
no test coverage detected