package
1.6.0
Repository: https://github.com/sphireinc/mantis.git
Documentation: pkg.go.dev

# README

Sphire Mantis::Data

The Data package of Mantis provides helpers for Linked Lists, Stacks, and Tree implementations. It also provides helper functions for marshalling and unmarshalling files, data existence, etc.

# Functions

Exists determines whether a given Path, File, or Directory exists use constants: Path int = iota File Directory.
GetEnvVariables returns a map of all environment variables.
IsStringTrue determines if a string is boolean true/false.
MapHasKey contains checks if a map[T any]string has a given key T.
MapToString takes a map[any]any and returns it as a string.
NewLinkedList returns an instance of List.
NewStack creates a new Stack.
NewTree creates a new tree.
QueryJSON queries a json object for a given path.
UnmarshalFile loads and unmarshals either a JSON or YAML file.

# Constants

Path enumerators File Directory.
Path enumerators File Directory.
Path enumerators File Directory.

# Structs

List holds our linked list.
Stack holds our data.
TreeNode is a node within our tree.