Go Error Tracking
DebugMate helps track typical Go application errors, making error monitoring easier in a Go environment.
Go 1.23.1 Errors
Division by Zero: Division with zero as the divisor.
File Not Found: Missing file in file-related operations.
HTTP Errors (400+ Codes): Tracks HTTP requests with client/server errors.
Simple Panic: Standard Go panics.
Type Assertion: Issues with type assertions in code.
Installation Process
Step 1: Configure go.mod:
go
go mod edit -replace github.com/DebugMate/go=../path-to-package
Step 2: Run tidy.
go
go mod tidy
Step 3: To execute all folder tests with race-condition flag enabled:
go
go test -v -race ./...
Step 4: How use on your project:
go
package main
import (
"github.com/DebugMate/go/debugmate"
"errors"
)
func main() {
debugmate.Init(debugmate.Options{
Domain: "http://dbm-server.test",
Token: "3302c780-8847-4fbb-bef2-4828599fc8ab",
Enabled: true,
})
debugmate.Catch(errors.New("Test generated by the debugmate test command"))
}