diff options
Diffstat (limited to 'modules/migration/messenger.go')
-rw-r--r-- | modules/migration/messenger.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/migration/messenger.go b/modules/migration/messenger.go new file mode 100644 index 0000000000..fa8218cf93 --- /dev/null +++ b/modules/migration/messenger.go @@ -0,0 +1,11 @@ +// Copyright 2021 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migration + +// Messenger is a formatting function similar to i18n.Tr +type Messenger func(key string, args ...interface{}) + +// NilMessenger represents an empty formatting function +func NilMessenger(string, ...interface{}) {} |