Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubClient ¶
type GithubClient struct {
// contains filtered or unexported fields
}
func NewGithubClient ¶
func NewGithubClient(token, owner, repo, filePath, name, email string) *GithubClient
http://github.com/kprc/libgithub/github.go token access token from your setting owner kprc repo libgithub filePath github.go
func (*GithubClient) CreateFile ¶
func (gc *GithubClient) CreateFile(commitMsg, fileContent string) error
func (*GithubClient) GetContent ¶
func (gc *GithubClient) GetContent() (content, hash string, err error)
func (*GithubClient) UpdateFile ¶
func (gc *GithubClient) UpdateFile(commitMsg, fileContent string) error
func (*GithubClient) UpdateFile2 ¶
func (gc *GithubClient) UpdateFile2(commitMsg, fileContent, hash string) error
Click to show internal directories.
Click to hide internal directories.