fdesktop

package module
v0.0.0-...-5b3b543 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	AppId  string
	Groups GroupMap
	Path   string
}

func NewEntry

func NewEntry(appId, path string) *Entry

func (*Entry) Decode

func (e *Entry) Decode(reader io.Reader) error

func (*Entry) Group

func (e *Entry) Group(name string) KeyMap

func (*Entry) Name

func (e *Entry) Name() string

func (*Entry) NoDisplay

func (e *Entry) NoDisplay() bool

func (*Entry) TryGroup

func (e *Entry) TryGroup(name string) (KeyMap, bool)

func (*Entry) TryName

func (e *Entry) TryName() (string, bool)

func (*Entry) TryNoDisplay

func (e *Entry) TryNoDisplay() bool

type GroupMap

type GroupMap map[string]KeyMap

type KeyMap

type KeyMap map[string]Value

func (KeyMap) GetBoolean

func (m KeyMap) GetBoolean(loc string, key string) bool

func (KeyMap) GetLocales

func (m KeyMap) GetLocales(key string) []Locale

func (KeyMap) GetNumeric

func (m KeyMap) GetNumeric(loc string, key string) float64

func (KeyMap) GetString

func (m KeyMap) GetString(loc string, key string) string

func (KeyMap) TryGetBoolean

func (m KeyMap) TryGetBoolean(loc string, key string) (bool, error)

func (KeyMap) TryGetLocales

func (m KeyMap) TryGetLocales(key string) ([]Locale, error)

func (KeyMap) TryGetNumeric

func (m KeyMap) TryGetNumeric(loc string, key string) (float64, error)

func (KeyMap) TryGetString

func (m KeyMap) TryGetString(loc string, key string) (string, error)

type Locale

type Locale struct {
	Lang     string
	Country  string
	Encoding string
	Modifier string
}

func (*Locale) Scan

func (l *Locale) Scan(state fmt.ScanState, verb rune) error

func (Locale) String

func (l Locale) String() string

type Value

type Value map[string]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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