list

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

List : 荷物リスト

func New

func New() *List

New : 生成

func (*List) AddItem

func (l *List) AddItem(pkgs *pack.Package)

AddItem : 荷物をリストに追加

func (*List) ChangeComment added in v1.1.0

func (l *List) ChangeComment(number, comment string) error

ChangeComment : コメントを変更する

func (*List) Clear

func (l *List) Clear()

Clear : リストをクリア

func (*List) Exists

func (l *List) Exists(number string) bool

Exists : リスト内に存在するか

func (*List) Get

func (l *List) Get() []pack.Package

Get : リストを取得

func (*List) IsEmpty added in v1.2.0

func (l *List) IsEmpty() bool

IsEmpty : リストが空かどうか

func (*List) Load

func (l *List) Load() error

Load : ファイルから読込

func (*List) RemoveItem

func (l *List) RemoveItem(number string) error

RemoveItem : 荷物をリストから削除

func (*List) Save

func (l *List) Save() error

Save : ファイルへ保存

func (*List) SetDir added in v1.3.1

func (l *List) SetDir(dir string)

SetDir : ディレクトリを設定

func (*List) View

func (l *List) View() error

View : リストを表示する

Jump to

Keyboard shortcuts

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