From 99d88356a37fbfb009c02e37ea098aa83571cba2 Mon Sep 17 00:00:00 2001 From: MarvinJWendt Date: Fri, 8 Jul 2022 15:15:02 +0000 Subject: [PATCH] docs: autoupdate --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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