Movatterモバイル変換


[0]ホーム

URL:


typewalk

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:3Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package typewalk provides utilities to walk Go types using reflection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcMatchingPaths

func MatchingPaths(rtreflect.Type, match func(reflect.Type)bool)iter.Seq[Path]

MatchingPaths returns a sequence ofPath for all pathswithin the given type that end in a type matching match.

Types

typePath

type Path struct {// Name is the path from the root type, suitable for using as a t.Run name.Namestring// Walk returns the reflect.Value at the end of the path, given a root// reflect.Value.Walk func(rootreflect.Value) (leafreflect.Value)}

Path describes a path via a type where a private key may be found,along with a function to test whether a reflect.Value at that path isnon-zero.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp