summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-01-18 02:46:39 -0700
committernavanchauhan <navanchauhan@gmail.com>2023-01-18 02:46:39 -0700
commit3f547d9ea5f50c110b3ca61c825433b8c1333ac5 (patch)
tree2483f643b21cbc11586468ac02b7afa1fd468628 /main.go
parent790ca38644b8c37c9feb7c433143a6b49b4f137e (diff)
added dogeknows-go
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9394aa6..3841215 100644
--- a/main.go
+++ b/main.go
@@ -5,10 +5,12 @@ import (
"fmt"
"html/template"
"io/fs"
+ "log"
"net/http"
"os"
"strconv"
+ "github.com/getsentry/sentry-go"
"github.com/joho/godotenv"
"github.com/meilisearch/meilisearch-go"
mytemplates "github.com/navanchauhan/dogeknows-go/templates"
@@ -31,6 +33,13 @@ func create_pdf_url(year string, knumber string) string {
}
func main() {
+ sentry_err := sentry.Init(sentry.ClientOptions{
+ Dsn: "https://72a0913f00e24d5da4d44ccde6ebcc9c@o126149.ingest.sentry.io/4504524880674816",
+ TracesSampleRate: 1.0,
+ })
+ if sentry_err != nil {
+ log.Fatalf("sentry.Init: %s", sentry_err)
+ }
err := godotenv.Load(".env")
if err != nil {
fmt.Println("Error loading .env file")