Affected by GO-2023-1774
and 5 other vulnerabilities
GO-2023-1774 : Answer Missing Authorization vulnerability in github.com/answerdev/answer
GO-2023-1995 : Answer has Race Condition within a Thread in github.com/answerdev/answer
GO-2023-1996 : Answer Insufficient Session Expiration vulnerability in github.com/answerdev/answer
GO-2023-1997 : Answer Missing Authorization vulnerability in github.com/answerdev/answer
GO-2023-2001 : Answer has Weak Password Requirements in github.com/answerdev/answer
GO-2023-2051 : Answer Missing Authentication for Critical Function in github.com/answerdev/answer
Discover Packages
github.com/answerdev/answer
internal
base
translator
package
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Apr 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
DefaultLangOption default language option. If user config the language is default, the language option is admin choose.
ProviderSet is providers.
CheckLanguageIsValid check user input language is valid
NewTranslator new a translator
Tr use language to translate data. If this language translation is not available, return default english translation.
type I18n struct {
BundleDir string `json:"bundle_dir" mapstructure:"bundle_dir" yaml:"bundle_dir"`
}
I18n i18n config
type LangOption struct {
Label string `json:"label"`
Value string `json:"value"`
Progress int `json:"progress"`
}
LangOption language option
Source Files
¶
Click to show internal directories.
Click to hide internal directories.