mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-10-06 16:07:11 +08:00
Initial commit, pt. 23
This commit is contained in:
16
pkg/repository/github.go
Normal file
16
pkg/repository/github.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"github.com/google/go-github/v62/github"
|
||||
)
|
||||
|
||||
type GitHub struct {
|
||||
Client *github.Client
|
||||
}
|
||||
|
||||
func NewGitHub() *GitHub {
|
||||
client := github.NewClient(nil).WithAuthToken("... your access token ...")
|
||||
return &GitHub{
|
||||
Client: client,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user