Files
kontor/kontor-gin/internal/globals/globals.go
T
Thomas Peetz 2889927416
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / build-and-test (push) Failing after 2m49s
change templates
2026-10-25 04:05:11 +01:00

27 lines
400 B
Go

package globals
import (
"fmt"
"github.com/gin-gonic/gin"
)
var (
Secret = []byte("secret")
Version = "unset"
Commit = "unset"
Date = "unset"
)
const UserKey = "user"
func GetDefaultValues(user interface{}, message string) gin.H {
values := gin.H{
"title": "Kontor",
"version": fmt.Sprintf("%s %s", Version, Commit),
"message": message,
"user": user,
}
return values
}