Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewMultiErrorOrNull ¶
Types ¶
type Lang ¶
type Lang interface {
fmt.Stringer
// ISO 639-1 two letter code. e.g. `en` for English, `ja` for Japanese.
// https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
Code() Iso639One
// ISO 639-1 two letter code in string.
CodeString() string
// Is default language of this system.
IsDefault() bool
// Language tag
Tag() language.Tag
// Resource path suffix
Suffix() string
// Display language name in this language
Self() string
// True when the x matches high confidence or exact match.
Equals(x Lang) bool
}
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
func (MultiError) AllErrors ¶
func (z MultiError) AllErrors() []error
func (MultiError) Error ¶
func (z MultiError) Error() string
func (MultiError) NumErrors ¶
func (z MultiError) NumErrors() int
Click to show internal directories.
Click to hide internal directories.