{"modulePath":"github.com/kprc/libgithub","version":"v0.0.0-20200815073330-bb4c920b872f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package libgithub\n\n## Types\n\n```go\ntype GithubClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGithubClient(token, owner, repo, filePath, name, email string) *GithubClient\n```\n[http://github.com/kprc/libgithub/github.go](http://github.com/kprc/libgithub/github.go) token access token from your setting owner  kprc repo  libgithub filePath github.go\n\n```go\nfunc (gc *GithubClient) CreateFile(commitMsg, fileContent string) error\n```\n\n```go\nfunc (gc *GithubClient) GetContent() (content, hash string, err error)\n```\n\n```go\nfunc (gc *GithubClient) UpdateFile(commitMsg, fileContent string) error\n```\n\n```go\nfunc (gc *GithubClient) UpdateFile2(commitMsg, fileContent, hash string) error\n```\n\n```go\ntype RepoSetting struct {\n\tOwner      string\n\tRepository string\n\tPath       string\n\tToken      string\n\tName       string\n\tEmail      string\n}\n```\n\n","path":"github.com/kprc/libgithub","name":"libgithub","synopsis":"","isRedistributable":true}
