mindmap

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Name       string
	SubDomains []*Domain
}

type FileInput

type FileInput struct {
	FilePath string
}

func (FileInput) ReadLines

func (f FileInput) ReadLines() <-chan LineResult

type InputSource

type InputSource interface {
	ReadLines() <-chan LineResult
}

type LineResult

type LineResult struct {
	Line  string
	Error error
}

type Node

type Node map[string]Node

func New

func New(source InputSource) (Node, error)

New reads lines from the input source and creates a mind map as a map[string]interface{}.

type ScannerInput

type ScannerInput struct {
	Scanner *bufio.Scanner
}

func (ScannerInput) ReadLines

func (s ScannerInput) ReadLines() <-chan LineResult

Jump to

Keyboard shortcuts

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