entropy

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ReplacePrefix = `"__INLINE_DATA",`
View Source
const ToReplace = `"__INLINE_DATA",{}`

Variables

This section is empty.

Functions

func Render

func Render(files []string, parser graph.NodeParser[*language.FileInfo], cfg RenderConfig) error

Types

type Graph

type Graph struct {
	Nodes     []Node `json:"nodes"`
	Links     []Link `json:"links"`
	EnableGui bool   `json:"enableGui"`
}
type Link struct {
	From     int64 `json:"from"`
	To       int64 `json:"to"`
	IsCyclic bool  `json:"isCyclic"`
}

type Node

type Node struct {
	Id           int64    `json:"id"`
	IsEntrypoint bool     `json:"isEntrypoint"`
	FileName     string   `json:"fileName"`
	PathBuf      []string `json:"pathBuf"`
	Group        string   `json:"group,omitempty"`
	DirName      string   `json:"dirName"`
	Loc          int      `json:"loc"`
	Size         int      `json:"size"`
}

type RenderConfig

type RenderConfig struct {
	NoOpen        bool
	EnableGui     bool
	RenderPath    string
	LoadCallbacks graph.LoadCallbacks[*language.FileInfo]
}

Jump to

Keyboard shortcuts

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