collection

package
v0.0.0-...-db5681a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	ID      int
	Name    string
	Tabs    []*tab.Tab
	Created time.Time
	Updated time.Time
}

Collection 代表一个集合

func New

func New(id int, name string) *Collection

New 返回第一次创建的集合

func (*Collection) AddTabs

func (c *Collection) AddTabs(tabs ...*tab.Tab)

AddTabs 将Tab添加到集合

func (*Collection) FindTab

func (c *Collection) FindTab(id int) (*tab.Tab, bool)

FindTab 如果存在则返回一个标签

func (*Collection) RemoveTab

func (c *Collection) RemoveTab(id int) bool

RemoveTab 如果标签存在,则删除它

func (*Collection) Rename

func (c *Collection) Rename(name string)

Rename重命名集合

func (*Collection) UpdateTab

func (c *Collection) UpdateTab(t *tab.Tab) bool

UpdateTab 更新标签(如果存在)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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