expr

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluckClaim

func PluckClaim(selection string, claims map[string]interface{}) ([]string, error)

PluckClaim returns the claim with a given name from a set of claims.

func PluckClaims

func PluckClaims(selection map[string]string, claims map[string]interface{}) (map[string][]string, error)

PluckClaims returns the claims with the given names from a set of claims.

Types

type Predicate

type Predicate func(a map[string]interface{}) bool

Predicate represents a function that can be evaluated to get the result of an expression.

func Parse

func Parse(expr string) (Predicate, error)

Parse returns a predicate from the given expression.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL