package path

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

Package path provides utilities for converting cue.Selectors and cue.Paths to internal equivalents.

Index

Functions

func MakeFeature

func MakeFeature(r *runtime.Runtime, s cue.Selector) adt.Feature

MakeFeature converts a cue.Selector to an adt.Feature for a given runtime.

func ToFeatureType

func ToFeatureType(t cue.SelectorType) adt.FeatureType

ToFeatureType converts a SelectorType constant to a FeatureType. It assumes a single label bit is set.

Source Files

selector.go

Version
v0.5.0-alpha.1
Published
Sep 15, 2022
Platform
js/wasm
Imports
4 packages
Last checked
48 minutes ago

Tools for package owners.