photoprism/internal/event/format.go
Michael Mayer 889de682c4 CI: Apply Go linter recommendations to "internal/event" package #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-22 14:10:56 +01:00

14 lines
293 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package event
import (
"fmt"
"strings"
)
// MessageSep separates event topic segments when rendered as text.
var MessageSep = " "
// Format formats an audit log event.
func Format(ev []string, args ...interface{}) string {
return fmt.Sprintf(strings.Join(ev, MessageSep), args...)
}