package ptr

import "github.com/open-policy-agent/opa/storage/internal/ptr"

Package ptr provides utilities for pointer operations using storage layer paths.

Index

Functions

func Ptr

func Ptr(data interface{}, path storage.Path) (interface{}, error)

func ValidateArrayIndex

func ValidateArrayIndex(arr []interface{}, s string, path storage.Path) (int, error)

Source Files

ptr.go

Version
v0.33.0
Published
Sep 30, 2021
Platform
js/wasm
Imports
3 packages
Last checked
2 seconds ago

Tools for package owners.