linkmap

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

func (*List) Check

func (l *List) Check(path string) bool
func (l *List) Link(caller string, tos ...string)

func (*List) Select

func (l *List) Select(caller string, fn func(path string) bool)

type Map

type Map struct {
	// contains filtered or unexported fields
}

func New

func New(log log.Interface) *Map

New linkmap. Linkmap is safe for concurrent use.

func (*Map) Get

func (m *Map) Get(path string) (*List, bool)

func (*Map) Range

func (m *Map) Range(fn func(path string, list *List) bool)

func (*Map) Scope

func (m *Map) Scope(path string) *List

Jump to

Keyboard shortcuts

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