miniflux.appminiflux.app/errors Index | Files

package errors

import "miniflux.app/errors"

Index

Types

type LocalizedError

type LocalizedError struct {
	// contains filtered or unexported fields
}

LocalizedError represents an error than could be translated to another language.

func NewLocalizedError

func NewLocalizedError(message string, args ...interface{}) *LocalizedError

NewLocalizedError returns a new LocalizedError.

func (LocalizedError) Error

func (l LocalizedError) Error() string

Error returns untranslated error message.

func (LocalizedError) Localize

func (l LocalizedError) Localize(printer *locale.Printer) string

Localize returns the translated error message.

Source Files

errors.go

Version
v1.0.46 (latest)
Published
Jul 22, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
2 weeks ago

Tools for package owners.