diff --git a/README.md b/README.md index a326e8b..6c03b65 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,13 @@ Package ghissue enables your users to submit issues to GitHub directly. ![Demo Video](https://raw.githubusercontent.com/atomicgo/ghissue/main/demo.gif) +Example: + + repo := ghissue.NewRepository("atomicgo", "ghissue") + // [...] + err := errors.New("This is an error") + repo.CreateErrorReport(err) // Only creates an error report if the error is not nil + ## Usage