symembed

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SymWalk

func SymWalk(root string, fn SymWalkFunc) error

Walk is similar to filepath.Walk (https://golang.org/pkg/path/filepath/#Walk) except it follows the symbolic links it finds. The walk function keeps a list of all visited directories to avoid endless loop resulted from symbolic loops

Types

type SymLink *string

type SymManifest

type SymManifest struct {
	Links map[string]string
}

func GenManifest

func GenManifest(root string) (SymManifest, error)

func (*SymManifest) ApplyManifest

func (manifest *SymManifest) ApplyManifest(root string) error

type SymWalkFunc

type SymWalkFunc func(path string, symlink SymLink, info fs.FileInfo, err error) error

Jump to

Keyboard shortcuts

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