MCPcopy
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
23func name(n string) ast.Constant {
24 c, err := ast.Name(n)
25 if err != nil {
26 panic(err)
27 }
28 return c
29}
30
31func ptr(c ast.Constant) *ast.Constant {
32 return &c

Callers 1

TestJSONtoStructFunction · 0.70

Calls 1

NameFunction · 0.92

Tested by

no test coverage detected