debug

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package debug prints a given ADT node.

Note that the result is not valid CUE, but instead prints the internals of an ADT node in human-readable form. It uses a simple indentation algorithm for improved readability and diffing.

Package debug prints a given ADT node.

Note that the result is not valid CUE, but instead prints the internals of an ADT node in human-readable form. It uses a simple indentation algorithm for improved readability and diffing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeString

func NodeString(i adt.StringIndexer, n adt.Node, config *Config) string

func WriteNode

func WriteNode(w io.Writer, i adt.StringIndexer, n adt.Node, config *Config)

Types

type Config

type Config struct {
	Cwd     string
	Compact bool
	Raw     bool
}

Jump to

Keyboard shortcuts

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