...

Package path

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

Overview ▾

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

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.