Skip to content

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

License

Notifications You must be signed in to change notification settings

Golang-Coach/github-readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages