Categorygithub.com/golang-coach/github-readme
modulepackage
0.0.0-20180416025725-8ce72826e0ff
Repository: https://github.com/golang-coach/github-readme.git
Documentation: pkg.go.dev

# README

Github Readme

This library is used to get GitHub readme content in HTML as well as in JSON format

How to use it


	src := oauth2.StaticTokenSource(
		&oauth2.Token{AccessToken: "<!-- Your github access token -->"},
	)
	ctx := context.Background()
	httpClient := oauth2.NewClient(ctx, src)
	githubClient := github.NewGithub(httpClient)

	content, err := githubClient.GetReadme(ctx, "<!-- organization name -->", "<!-- Github repository name -->")

	fmt.Println(content)
	fmt.Println(err)

# Packages

No description provided by the author

# Functions

NewGithub initialized Github.

# Structs

No description provided by the author