MCPcopy Create free account
hub / github.com/google/go-github / genIdentGetter

Function genIdentGetter

github/gen-accessors.go:367–371  ·  view source on GitHub ↗
(x *ast.Ident, receiverType, fieldName string)

Source from the content-addressed store, hash-verified

365}
366
367func genIdentGetter(x *ast.Ident, receiverType, fieldName string) *getter {
368 zeroValue := zeroValueOfIdent(x)
369 namedStruct := zeroValue == "nil"
370 return newGetter(receiverType, fieldName, x.String(), zeroValue, namedStruct)
371}
372
373func (t *templateData) addMapType(x *ast.MapType, receiverType, fieldName string, isAPointer bool) {
374 var keyType string

Callers 2

addSimpleValueIdentMethod · 0.85
addIdentMethod · 0.85

Calls 3

zeroValueOfIdentFunction · 0.85
newGetterFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…