item

package
v0.0.0-...-fd28bdc Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidItem = errors.New("Is not a valid Item")
)

Functions

This section is empty.

Types

type Item

type Item struct {
	ID   uuid.UUID
	Name string
}

func NewItem

func NewItem(name string) (Item, error)

func (*Item) GetID

func (i *Item) GetID() uuid.UUID

func (*Item) GetName

func (i *Item) GetName() string

func (*Item) SetID

func (i *Item) SetID(id uuid.UUID)

func (*Item) SetName

func (i *Item) SetName(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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