cli

package
v0.0.0-...-06a14a9 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...any)

func Fatalf

func Fatalf(format string, v ...any)

func Print

func Print(v ...any) (int, error)

func PrintJSON

func PrintJSON(tree mindmap.Node)

PrintJSON takes in a map of type string to interface{}, which represents a JSON tree.

func PrintList

func PrintList(tree mindmap.Node)

PrintList output the tree in plaintext format using tabs

func PrintMarkdown

func PrintMarkdown(tree mindmap.Node)

PrintMarkdown output the tree in markdown format using an unsorted list

func PrintObsidianCanvas

func PrintObsidianCanvas(tree mindmap.Node)

func PrintYAML

func PrintYAML(tree mindmap.Node)

func Printf

func Printf(format string, v ...any) (int, error)

func Println

func Println(v ...any) (int, error)

func TreeToList

func TreeToList(data mindmap.Node, markdown bool) string

TreeToList takes in a map of type string to interface{} and returns a string that represents a list of the key-value pairs in the map. The map can be nested, and its keys will be sorted alphabetically. The list will have a nested structure that reflects the structure of the map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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