1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-30 19:22:08 +00:00
forgejo/modules/templates/context.go

24 lines
428 B
Go
Raw Normal View History

// Copyright 2025 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: GPL-3.0-or-later
package templates
import (
"context"
"forgejo.org/modules/translation"
)
type Context struct {
context.Context
Locale translation.Locale
AvatarUtils *AvatarUtils
Data map[string]any
}
var _ context.Context = Context{}
func NewContext(ctx context.Context) *Context {
return &Context{Context: ctx}
}