mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
15 lines
293 B
Go
15 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...)
|
||
}
|