diff options
author | navanchauhan <navanchauhan@gmail.com> | 2023-01-18 02:46:39 -0700 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2023-01-18 02:46:39 -0700 |
commit | 3f547d9ea5f50c110b3ca61c825433b8c1333ac5 (patch) | |
tree | 2483f643b21cbc11586468ac02b7afa1fd468628 /main.go | |
parent | 790ca38644b8c37c9feb7c433143a6b49b4f137e (diff) |
added dogeknows-go
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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") |