mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
14 lines
293 B
Go
14 lines
293 B
Go
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...)
|
||
}
|