Documentation
¶
Overview ¶
Package runtimeerror adds safe context at runtime boundaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SafeIdentity ¶
type SafeIdentity struct {
// contains filtered or unexported fields
}
SafeIdentity is bounded ASCII text approved for errors and logs.
func NewSafeIdentity ¶
func NewSafeIdentity(value string) (SafeIdentity, error)
NewSafeIdentity validates a diagnostic identity before use.
func (SafeIdentity) LogValue ¶
func (identity SafeIdentity) LogValue() slog.Value
LogValue implements slog.LogValuer using only validated safe text.
func (SafeIdentity) String ¶
func (identity SafeIdentity) String() string
String returns the validated safe value.
Click to show internal directories.
Click to hide internal directories.