Versions in this module Expand all Collapse all v0 v0.1.0 Apr 27, 2021 Changes in this version + func Get(client *http.Client, url string) (out []byte, err error) + func GetOauthInfo(client *http.Client) (out []byte, err error) + func JsonToMap(body io.ReadCloser) (outStr string, err error) + func JsonToStruct(data []byte) (out string, err error) + func Post(client *http.Client, url string, jsonBytes []byte) (out []byte, err error) + func SaveJsonToStruct(body io.ReadCloser) (err error) + func WriteRawFile(resp *http.Response) (err error) + type BranchHead []struct + type BranchNew struct + Ref string + Sha string + type GitBranches struct + Data *branchesData + Login string + func (g *GitBranches) List(login, repos string) (err error) + func (g *GitBranches) NewFromMaster(user, repos, newBranch string) (out []byte, err error) + func (g *GitBranches) Read(filename string) (err error) + func (g *GitBranches) Write(filename string) (err error) + type GitMainStruct struct + Branches *GitBranches + GoStruct bool + Login string + Oauth2Client *http.Client + PersonalAccessToken string + Releases *GitReleases + Repos *GitUsersRepos + Search *GitSearch + func (g *GitMainStruct) GitMainStructInit(login, token string) + type GitReleases struct + Data *releasesData + Login string + func (g *GitReleases) List(login, repos string) (err error) + func (g *GitReleases) Read(filename string) (err error) + func (g *GitReleases) Write(filename string) (err error) + type GitSearch struct + Data *searchData + Login string + Status string + func (g *GitSearch) For(target, query string) (err error) + func (g *GitSearch) Read(filename string) (err error) + func (g *GitSearch) Write(filename string) (err error) + type GitUsersRepos struct + Data *usersReposData + Login string + func (g *GitUsersRepos) List(login string) (err error) + func (g *GitUsersRepos) Read(filename string) (err error) + func (g *GitUsersRepos) ReposNew(newRepos *UserReposNew) (out []byte, err error) + func (g *GitUsersRepos) ReposRemove(repos string) (out []byte, err error) + func (g *GitUsersRepos) Write(filename string) (err error) + type UserReposNew struct + AllowMergeCommit bool + AllowRebaseMerge bool + AllowSquashMerge bool + AutoInit bool + Description string + HasIssues bool + HasProjects bool + HasWiki bool + Homepage string + IsTemplate bool + Name string + Private bool + func (r *UserReposNew) InitDefault(reposName, description string)