gophers

package
v0.0.0-...-16694d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Go Reference

golang.org/x/build/internal/gophers

Package gophers is a list of names, emails, and GitHub usernames of people from the Go git repos and issue trackers.

Documentation

Overview

Package gophers is a list of names, emails, and GitHub usernames of people from the Go git repos and issue trackers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitHubOfGomoteUser

func GitHubOfGomoteUser(gomoteUser string) (githubUser string)

GitHubOfGomoteUser returns the GitHub username for the provided gomote user.

Types

type Person

type Person struct {
	Name    string   // "Foo Bar"
	GitHub  string   // "FooBar" (orig case, no '@')
	Gerrit  string   // "foo@bar.com" (lowercase)
	Emails  []string // all lower
	Googler bool     // whether person is (or was) a Googler; determined via heuristics
	Bot     bool     // whether it's a known bot (GopherBot, Gerrit Bot)
}

Person represents a person.

func GetGerritPerson

func GetGerritPerson(ai gerrit.AccountInfo) *Person

GetGerritPerson looks up a person from the Gerrit account ai. It uses the name and email in the Gerrit account for the lookup.

func GetPerson

func GetPerson(id string) *Person

GetPerson looks up a person by id and returns one if found, or nil otherwise.

The id is case insensitive, and may be one of:

• full name (for example, "Dmitri Shuralyov")

• GitHub username (for example, "@dmitshur"), leading '@' is mandatory

• GitHub team name (for example, "@golang/tools-team"), leading '@' is mandatory

• Gerrit <account ID>@<instance ID> (for example, "6005@62eb7196-b449-3ce5-99f1-c037f21e1705")

• email (for example, "dmitshur@golang.org")

Only exact matches are supported.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL