MCPcopy Create free account
hub / github.com/golang/appengine / String

Method String

user/user.go:38–46  ·  view source on GitHub ↗

String returns a displayable name for the user.

()

Source from the content-addressed store, hash-verified

36
37// String returns a displayable name for the user.
38func (u *User) String() string {
39 if u.AuthDomain != "" && strings.HasSuffix(u.Email, "@"+u.AuthDomain) {
40 return u.Email[:len(u.Email)-len("@"+u.AuthDomain)]
41 }
42 if u.FederatedIdentity != "" {
43 return u.FederatedIdentity
44 }
45 return u.Email
46}
47
48// LoginURL returns a URL that, when visited, prompts the user to sign in,
49// then redirects the user to the URL specified by dest.

Callers 15

urlStringFunction · 0.45
RoundTripMethod · 0.45
TestDefaultVersionFunction · 0.45
TestBasicUserAPIFunction · 0.45
TestLoginURLFunction · 0.45
LoginURLFederatedFunction · 0.45
LogoutURLFunction · 0.45
PutMultiMethod · 0.45
GetMethod · 0.45
SearchMethod · 0.45
moreSearchFunction · 0.45
sortToProtoFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestDefaultVersionFunction · 0.36
TestBasicUserAPIFunction · 0.36
TestLoginURLFunction · 0.36
newStringValueFieldFunction · 0.36
newFacetFunction · 0.36
TestLimitFunction · 0.36
TestPutFunction · 0.36
TestPutBadStatusFunction · 0.36
TestPutMultiErrorFunction · 0.36
TestSortOptionsFunction · 0.36
TestFieldSpecFunction · 0.36
TestBasicSearchOptsFunction · 0.36