Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInSlice ¶
ContainsInSlice 判断字符串是否在 slice 中
func GreenColor ¶
func GreenColor(s interface{}) string
func YellowColor ¶
func YellowColor(s interface{}) string
Types ¶
type APIError ¶
type APIError struct { Code int `json:"code"` Data interface{} `json:"data,omitempty"` Msg string `json:"msg"` Errors []struct { Resource string `json:"resource"` Field string `json:"field"` Code string `json:"code"` } `json:"errors,omitempty"` }
APIError represents the error message that GitHub API returns. GitHub API doc: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#client-errors
type CMClient ¶
type CMClient struct { *req.Client // contains filtered or unexported fields }
GithubClient is the go client for GitHub API.
func (*CMClient) LoginWithToken ¶
LoginWithToken login with GitHub personal access token.
Click to show internal directories.
Click to hide internal directories.