Deprecated: This version of github.com/lestrrat-go/jwx is deprecated. Please use github.com/lestrrat-go/jwx/v3 or newer instead.

package iter

import "github.com/lestrrat-go/jwx/internal/iter"

Index

Functions

func AsMap

func AsMap(ctx context.Context, src mapiter.Source) (map[string]interface{}, error)

func WalkMap

func WalkMap(ctx context.Context, src mapiter.Source, visitor MapVisitor) error

Types

type MapVisitor

type MapVisitor interface {
	Visit(string, interface{}) error
}

MapVisitor is a specialized visitor for our purposes. Whereas mapiter.Visitor supports any type of key, this visitor assumes the key is a string

type MapVisitorFunc

type MapVisitorFunc func(string, interface{}) error

func (MapVisitorFunc) Visit

func (fn MapVisitorFunc) Visit(s string, v interface{}) error

Source Files

mapiter.go

Version
v1.2.31 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
3 weeks ago

Tools for package owners.