MCPcopy Create free account
hub / github.com/cli/cli / ExportData

Method ExportData

pkg/search/result.go:267–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265}
266
267func (u User) ExportData() map[string]any {
268 isBot := u.IsBot()
269 login := u.Login
270 if isBot {
271 login = "app/" + login
272 }
273 return map[string]any{
274 "id": u.ID,
275 "login": login,
276 "type": u.Type,
277 "url": u.URL,
278 "is_bot": isBot,
279 }
280}
281
282func (code Code) ExportData(fields []string) map[string]any {
283 v := reflect.ValueOf(code)

Callers

nothing calls this directly

Calls 1

IsBotMethod · 0.95

Tested by

no test coverage detected