Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AppName use to github-access-token's note AppName = "go-github-token" // UserAgent value UserAgent = AppName + " v" + version // NoteURL to use github-access-token's note NoteURL = "https://github.com/Code-Hex/github-token" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Auth octokit.BasicAuth TokenNote string // contains filtered or unexported fields }
Client is the struct :D
func NewWithClient ¶
NewWithClient will return *token.Client set with your defined *http.Client.
func (*Client) CreateToken ¶
CreateToken create a token based on the information of the *token.Client struct.
func (*Client) GetAccessToken ¶
GetAccessToken enter the necessary information to obtain the token.
func (*Client) ReadPassword ¶
ReadPassword read password from prompt input.
func (*Client) ReadUsername ¶
ReadUsername read username from prompt input.
Click to show internal directories.
Click to hide internal directories.