1.4.5.2
This commit is contained in:
13
EdgeCommon/pkg/langs/message.go
Normal file
13
EdgeCommon/pkg/langs/message.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package langs
|
||||
|
||||
type MessageCode string
|
||||
|
||||
func (this MessageCode) For(langCode LangCode, args ...any) string {
|
||||
return Message(langCode, this, args...)
|
||||
}
|
||||
|
||||
func (this MessageCode) String() string {
|
||||
return string(this)
|
||||
}
|
||||
Reference in New Issue
Block a user