Documentation ¶
Index ¶
Constants ¶
View Source
const LangName = "lang"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { GetDefaultLang() string GetAllLang() []string GetMultipleLang() bool GetLang(*slog.Logger, *gin.Context) string CheckLang(*slog.Logger, string) string SetLangCookie(*slog.Logger, string, *gin.Context) string }
func NewManager ¶
func NewManager(logger *slog.Logger, globalConfig *config.GlobalServiceConfig) Manager
Click to show internal directories.
Click to hide internal directories.