darwin

package
v0.0.0-...-d530cd0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Darwin is a program that creates a skill tree for your life the darwin package the skill tree and the related methodology

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Darwin

type Darwin struct {
	// Nodes are the nodes in the skill tree
	// Nodes are stored in a map for easy access
	Nodes map[uuid.UUID]*node.Node
	// Store is the store used to load, save, and delete nodes
	Store store.Store
}

func Load

func Load(store store.Store) (*Darwin, error)

Load creates a new darwin object and loads all the nodes from the the node store

func (*Darwin) Add

func (d *Darwin) Add(n *node.Node) error

Adds a node to the darwin tree

func (*Darwin) Delete

func (d *Darwin) Delete(n *node.Node) error

Delete deletes a node from the darwin tree

func (*Darwin) GetStarred

func (d *Darwin) GetStarred() []*node.Node

GetStarred returns a list of starred nodes

func (*Darwin) GetUnstarred

func (d *Darwin) GetUnstarred() []*node.Node

GetUnstarred returns a list of starred nodes

func (*Darwin) Star

func (d *Darwin) Star(u uuid.UUID) error

Star adds a node to the starred list

func (*Darwin) Unstar

func (d *Darwin) Unstar(u uuid.UUID) error

Unstar removes a node from the starred list

Jump to

Keyboard shortcuts

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