analysis

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State[T comparable] struct {
	// contains filtered or unexported fields
}

func FromYaml added in v0.3.0

func FromYaml[T comparable](in []byte) (*State[T], error)

func New

func New[T comparable]() State[T]

func (State[T]) AddEmbed

func (s State[T]) AddEmbed(parent T, child T)
func (s State[T]) AddLink(from T, to T)

func (State[T]) ToYaml

func (s State[T]) ToYaml() ([]byte, error)

func (State[T]) ToYamlFormat added in v0.4.1

func (s State[T]) ToYamlFormat() YamlFormat[T]

type YamlFormat added in v0.4.1

type YamlFormat[T comparable] struct {
	LinksTo              map[T][]T `yaml:"linksTo"`
	LinksFrom            map[T][]T `yaml:"linksFrom"`
	ParentsOf            map[T][]T `yaml:"parentsOf"`
	ChildrenOf           map[T][]T `yaml:"childrenOf"`
	HereditaryChildrenOf map[T][]T `yaml:"hereditaryChildrenOf"`
	HereditaryLinksFrom  map[T][]T `yaml:"hereditaryLinksFrom"`
}

func YamlFormatFromBytes added in v0.4.1

func YamlFormatFromBytes[T comparable](in []byte) (*YamlFormat[T], error)

Jump to

Keyboard shortcuts

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