test_no_export

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL