package walk

import "cuelang.org/go/internal/walk"

Package walk allows walking over CUE values.

This package replicates Value.Walk in the cue package. There are several different internal uses of walk. This package is intended as a single implementation that on which all these implementations should converge. Once a satisfactory API has been established, it can be made public.

Index

Functions

func Value

func Value(v cue.Value, c *Config)

Types

type Config

type Config struct {
	Before func(f cue.Value) bool
	After  func(f cue.Value)
	Opts   []cue.Option
}

Source Files

walk.go

Version
v0.2.0
Published
May 20, 2020
Platform
windows/amd64
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.