package debug

import "cuelang.org/go/internal/core/debug"

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

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
}

Source Files

compact.go debug.go

Version
v0.4.3
Published
Apr 20, 2022
Platform
windows/amd64
Imports
8 packages
Last checked
42 minutes ago

Tools for package owners.