view

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, viewer Viewer)

Register 注册视图

func Registered

func Registered() (names []string)

Registered 返回已注册的视图名称列表

Types

type Viewer

type Viewer interface {
	Do(items []model.DB, out io.Writer) error
}

Viewer 数据视图

func SelectViewer

func SelectViewer(name string) Viewer

SelectViewer 根据视图名称从已注册的视图中进行查找,若指定视图不存在,则返回nil。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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