Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware wraps an http.Handler to log the remote address, method, path, and duration of every request to stdout.
func RegisterRoutes ¶
RegisterRoutes registers all API endpoints on the provided mux.
Types ¶
type DiffRequest ¶
DiffRequest represents the JSON payload for the POST /api/diff endpoint.
type DiffResponse ¶
type DiffResponse struct {
OpCodes []OpCodeInfo `json:"opCodes"`
BaseLines []string `json:"baseLines"`
CompareLines []string `json:"compareLines"`
}
DiffResponse is the structured JSON response for custom UI rendering.
Click to show internal directories.
Click to hide internal directories.