Ghfs
Package ghfs wraps the github v3 rest api with io/fs.
Install / Use
/learn @johejo/GhfsREADME
ghfs
Package ghfs wraps the github v3 rest api with io/fs. Files in the repository can be read in the same way as local files.
Example
package ghfs_test
import (
"context"
"io"
"os"
"github.com/johejo/ghfs"
"golang.org/x/oauth2"
)
func Example() {
ctx := context.Background()
ts := oauth2.StaticTokenSource(&oauth2.Token{AccessToken: os.Getenv("GITHUB_TOKEN")})
c := oauth2.NewClient(ctx, ts)
fsys := ghfs.New(c, "golang", "go")
f, err := fsys.Open("README.md")
if err != nil {
panic(err)
}
io.Copy(os.Stdout, f)
}
License
MIT
Author
Mitsuo Heijo
Related Skills
apple-reminders
349.9kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
349.9kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
349.9kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
