Documentation
¶
Index ¶
- Constants
- Variables
- func CreateGist(ctx context.Context, description string, contents map[string]string, ...) (*github.Gist, error)
- func EditGist(ctx context.Context, gistID string, contents map[string]string, ...) (*github.Gist, error)
- func GetUsername(ctx context.Context) (string, error)
- func IsLoggedIn(ctx context.Context) bool
- func ListGists(ctx context.Context) ([]*github.Gist, error)
- func Login(ctx context.Context, token string, httpClient *http.Client)
- func ReadGist(ctx context.Context, gistID *string) (*github.Gist, error)
- func RemoveGist(ctx context.Context, gistID string) error
- func UnauthenticatedLogin(httpClient *http.Client)
- type UserInfo
Constants ¶
View Source
const CLIENT_ID = "Iv23liEjj0fbjwLQLDY0"
Variables ¶
View Source
var Client *github.Client
View Source
var SCOPES = []string{"gist"}
Functions ¶
func CreateGist ¶
func IsLoggedIn ¶
func UnauthenticatedLogin ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.