go: cuelang.org/go/internal/core/debug Index | Files

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

Package Files

compact.go debug.go

func NodeString Uses

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

func WriteNode Uses

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

type Config Uses

type Config struct {
    Cwd     string
    Compact bool
    Raw     bool
}

Package debug imports 8 packages (graph) and is imported by 4 packages. Updated 2020-09-28. Refresh now. Tools for package owners.