langpack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package langpack for yaff cli flags.

Index

Constants

View Source
const (
	// LangPack language pack for this package.
	LangPack = PackID(1)

	// None is a default empty message (id 0).
	None = TextID(iota)

	// FlagsReportingFormat cli arg for format.
	FlagsReportingFormat
	// FlagsReportingStyle cli arg for style (text format).
	FlagsReportingStyle
	// FlagsReportingTemplate cli arg for template contents (template format).
	FlagsReportingTemplate
	// FlagsReportingTemplateFile cli arg for template file (template format).
	FlagsReportingTemplateFile
	// FlagsReportingIndent cli arg for indent file (json format).
	FlagsReportingIndent
	// FlagsReportingInclude cli arg for columns to include.
	FlagsReportingInclude
	// FlagsReportingExclude cli arg for columns to exclude.
	FlagsReportingExclude
	// FlagsColumnSeparator column separator.
	FlagsColumnSeparator
	// FlagsTtyWidth terminal width.
	FlagsTtyWidth

	// ErrorIndentLessThanZero bad indent.
	ErrorIndentLessThanZero

	// ErrorTemplateAndTemplateFileSet bad template args.
	ErrorTemplateAndTemplateFileSet
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PackID

type PackID int

PackID is the local package id.

type TextID

type TextID int

TextID is the id type for all messages defined by this package.

func (TextID) Plural

func (id TextID) Plural() lpax.TextID

Plural returns the plural version of the id.

func (TextID) Single

func (id TextID) Single() lpax.TextID

Single returns the id of for a single version of a message. Typical implementations use the lpax helper functions to implement the id system. Positive id's are used for single messages while -ve id's areused for plural versions.

func (TextID) String

func (id TextID) String() string

String implements stringer function. ReflectCoderString reflects the package name used by the parent package along with the +ve integer id of the key.

Jump to

Keyboard shortcuts

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