MCPcopy Index your code
hub / github.com/google/go-github / GetKey

Method GetKey

github/github-accessors.go:20322–20327  ·  view source on GitHub ↗

GetKey returns the Key field if it's non-nil, zero value otherwise.

()

Source from the content-addressed store, hash-verified

20320
20321// GetKey returns the Key field if it's non-nil, zero value otherwise.
20322func (k *Key) GetKey() string {
20323 if k == nil || k.Key == nil {
20324 return ""
20325 }
20326 return *k.Key
20327}
20328
20329// GetLastUsed returns the LastUsed field if it's non-nil, zero value otherwise.
20330func (k *Key) GetLastUsed() Timestamp {

Callers 8

TestKey_GetKeyFunction · 0.95
TestUsers_KeysFunction · 0.45
TestUsersService_GetKeyFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestKey_GetKeyFunction · 0.76
TestUsers_KeysFunction · 0.36
TestUsersService_GetKeyFunction · 0.36