Documentation
¶
Index ¶
- Constants
- func Encrypt(x25519Key string, plaintext string) (string, error)
- func Language(r *http.Request) string
- func NewExpandReader(file string, expandEnv bool) (io.ReadCloser, error)
- func ParseLangEnv(langEnv string) string
- func RegisterLanguageMatcher() error
- func Translate(langKey, text string) string
- func W(r *http.Request, message string) string
- type Cache
- type Database
- type Decrypter
- type Duration
- type LanguageDict
- type OSS
Constants ¶
View Source
const (
MiByte = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
func NewExpandReader ¶
func NewExpandReader(file string, expandEnv bool) (io.ReadCloser, error)
func ParseLangEnv ¶ added in v0.17.0
func RegisterLanguageMatcher ¶
func RegisterLanguageMatcher() error
Types ¶
type Database ¶
type Decrypter ¶ added in v0.20.1
type Decrypter struct {
*ecdh.PrivateKey
}
func NewDecrypter ¶ added in v0.20.1
type Duration ¶
func (*Duration) UnmarshalText ¶
type LanguageDict ¶
Click to show internal directories.
Click to hide internal directories.