Documentation ¶
Index ¶
- Constants
- type Can
- func (can *Can) AddTag(name string, tag string) error
- func (can *Can) DelItem(name string) error
- func (can *Can) DelTag(name string, tag string) error
- func (can *Can) GetItem(name string) (*Item, error)
- func (can *Can) RenameItem(name string, newName string) error
- func (can *Can) Save() error
- func (can *Can) SetItem(name string, value string) error
- type Item
- type Metadata
Constants ¶
View Source
const ( VERSION = "v1" ALGORITHM = "GCM" SEPARATOR = "\n\n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Can ¶
type Can struct { Version string `json:"version" yaml:"version"` Metadata Metadata `json:"metadata" yaml:"metadata"` Items map[string]*Item `json:"items" yaml:"items"` // contains filtered or unexported fields }
Can struct
func (*Can) RenameItem ¶
RenameItem renames an existing item
Click to show internal directories.
Click to hide internal directories.