Documentation ¶
Index ¶
- Constants
- type I18nCodeNoExportErrorWrap
- func (e *I18nCodeNoExportErrorWrap) Error() string
- func (e *I18nCodeNoExportErrorWrap) Format() string
- func (e *I18nCodeNoExportErrorWrap) String() string
- func (e *I18nCodeNoExportErrorWrap) Translate() string
- func (e *I18nCodeNoExportErrorWrap) Unwrap() error
- func (e *I18nCodeNoExportErrorWrap) Value() code_no_export
Constants ¶
View Source
const ( HELLO code_no_export = iota + 1 WORLD ALIAS = WORLD // test for repeat )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I18nCodeNoExportErrorWrap ¶
type I18nCodeNoExportErrorWrap struct {
// contains filtered or unexported fields
}
I18nCodeNoExportErrorWrap type i18n error wrapper
WARNING This struct ONLY used to wrap the CONST generated by the i18n-stringer tool, Pass easily obtain internationalized translations through Error, String, Translate WARNING
func (*I18nCodeNoExportErrorWrap) Error ¶
func (e *I18nCodeNoExportErrorWrap) Error() string
Error struct as error, get typed message wrap with inside error message
- this method will be formatted wrap error if exist.
- Only for development and debugging, or logging full error message
- if you want to get typed message, please use method String or Translate
func (*I18nCodeNoExportErrorWrap) Format ¶
func (e *I18nCodeNoExportErrorWrap) Format() string
Format alias for method Error
- this method will be formatted wrap error if exist.
- Only for development and debugging, or logging full error message
- if you want to get typed message, please use method String or Translate
func (*I18nCodeNoExportErrorWrap) String ¶
func (e *I18nCodeNoExportErrorWrap) String() string
String implement fmt.Stringer, get translated string use Translate
func (*I18nCodeNoExportErrorWrap) Translate ¶
func (e *I18nCodeNoExportErrorWrap) Translate() string
Translate get translated string
func (*I18nCodeNoExportErrorWrap) Unwrap ¶
func (e *I18nCodeNoExportErrorWrap) Unwrap() error
Unwrap an error. Get the error inside
func (*I18nCodeNoExportErrorWrap) Value ¶
func (e *I18nCodeNoExportErrorWrap) Value() code_no_export
Value get original type value
Click to show internal directories.
Click to hide internal directories.