{"modulePath":"github.com/ray-on-code/ghs","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github は go-github を薄くラップし、ghs から必要な操作のみを公開します。\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient は GitHub API クライアントのラッパーです。\n\n```go\nfunc New(ctx context.Context, token string) *Client\n```\nNew は OAuth2 トークンで認証された Client を返します。\n\n```go\nfunc (c *Client) CurrentUser(ctx context.Context) (string, error)\n```\nCurrentUser は認証済みユーザーの login (username) を返します。\n\n```go\nfunc (c *Client) ListOwners(ctx context.Context) ([]string, error)\n```\nListOwners は自分のユーザー名と、所属しているすべての組織のスラッグをまとめて返します。 先頭は必ず認証ユーザー自身です。\n\n```go\nfunc (c *Client) ListRepositories(ctx context.Context, owner string) ([]Repository, error)\n```\nListRepositories は指定オーナーのリポジトリ一覧を取得します。 owner が認証ユーザー自身の場合は private 含む全件、それ以外（組織）も同様に取得を試みます。\n\n```go\ntype Repository struct {\n\tOwner       string\n\tName        string\n\tFullName    string\n\tDescription string\n\tPrivate     bool\n\tFork        bool\n\tArchived    bool\n\tHTMLURL     string\n\tSSHURL      string\n\tCloneURL    string\n}\n```\nRepository は UI 側で扱いやすいよう必要な情報だけを抽出した構造体です。\n\n","path":"github.com/ray-on-code/ghs/pkg/github","name":"github","synopsis":"Package github は go-github を薄くラップし、ghs から必要な操作のみを公開します。","isRedistributable":true}
