base

package
v0.58.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package base server 的基础环境

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Location *time.Location
	Catalog  *catalog.Builder
	Tag      language.Tag
	Printer  *message.Printer
	Logs     *logs.Logs
}

func New

func New(logs *logs.Logs, loc *time.Location, tag language.Tag) *Base

func (*Base) LoadLocaleFiles

func (l *Base) LoadLocaleFiles(fsys fs.FS, glob string, f *serialization.FS) error

func (*Base) NewPrinter

func (l *Base) NewPrinter(tag language.Tag) *message.Printer

Jump to

Keyboard shortcuts

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