README ¶ Github-Wrapper Simple Package that wrap Github api to make it easy to use. currently feature : Upload file to repository Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func NewGithubClient(httpClient *http.Client) (client *github.Client) func NewOauth2Client(ctx context.Context, accessToken string) (client *http.Client) type Wrapper func (wrp *Wrapper) UploadFile(ctx context.Context, path, message string, content []byte) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewGithubClient ¶ func NewGithubClient(httpClient *http.Client) (client *github.Client) func NewOauth2Client ¶ func NewOauth2Client(ctx context.Context, accessToken string) (client *http.Client) Types ¶ type Wrapper ¶ type Wrapper struct { // contains filtered or unexported fields } func (*Wrapper) UploadFile ¶ func (wrp *Wrapper) UploadFile(ctx context.Context, path, message string, content []byte) (err error) Source Files ¶ View all Source files files.goservice.gotypes.go Click to show internal directories. Click to hide internal directories.