Documentation
¶
Overview ¶
Package github provides a client for the GitHub Contents API. It fetches file contents and directory listings from repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string // defaults to "https://api.github.com"
Token string // optional bearer token
HTTPClient *http.Client // optional; falls back to http.DefaultClient
}
Client accesses the GitHub Contents API.
type ContentEntry ¶
type ContentEntry struct {
Name string `json:"name"`
Path string `json:"path"`
Type string `json:"type"` // "file" or "dir"
}
ContentEntry represents a file or directory in a GitHub repository listing.
Click to show internal directories.
Click to hide internal directories.