Help us shape the future of Go! Take the 2026 Go Developer Survey

render

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package render pre-renders human-readable summaries for audit events at write time; the rendered string is stored directly in the audit_log row.

IMPORTANT: renderer changes do NOT retroactively update existing rows. When adding a new (category, action) pair, register a new Renderer via register() in the appropriate init file. Do NOT change the wording of existing renderers — stored rows will not be updated and UI display will become inconsistent with historical data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(category, action string, before, after []byte) (summary, target string)

Types

type Renderer

type Renderer func(before, after []byte) (summary, target string)

Jump to

Keyboard shortcuts

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