diagnostics

package
v5.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 2 Imported by: 0

README

GWC | Diagnostics Library

GoWebComponents (GWC)

High-Level Overview

The diagnostics library holds shared diagnostic structures and helpers used to report framework state and recoverable issues.

Public APIs

github.com/monstercameron/GoWebComponents/diagnostics (package diagnostics)
  • Functions: Build, Emit, WriteHTTPError
  • Types: Options, Report
  • Variables: none
  • Constants: none

Subfiles And Purpose

  • diagnostics.go - Core implementation for diagnostics
  • diagnostics_test.go - Tests for diagnostics behavior

File Map

diagnostics/
|-- diagnostics.go
\-- diagnostics_test.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(parseReport Report)

Emit writes a formatted diagnostics report to stderr. (There is no listener/ sink registry — the report is rendered synchronously to os.Stderr.)

func WriteHTTPError

func WriteHTTPError(parseW http.ResponseWriter, parseStatus int, parseReport Report)

WriteHTTPError writes the report as an HTTP error response with the given status code. Server-only (!js) so wasm builds never link net/http.

Types

type Options

type Options = internaldiagnostics.Options

type Report

type Report = internaldiagnostics.Report

func NewReport

func NewReport(parseOptions Options) Report

NewReport builds a diagnostics Report from the given options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL