utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EvalSymlinks = func(path string) (string, error) {
	return filepath.EvalSymlinks(path)
}

Required to enable testing (filepath.EvalSymlinks does not support the fs.FS interface that fstest implements)

Functions

func IsSymLink(fsys fs.FS, path string) bool

func ResolveFlag

func ResolveFlag(flag string, path *string) error

func ResolvePath

func ResolvePath(path *string) error

Types

type StringListFlag

type StringListFlag []string

Comma-separated string flag type

func (*StringListFlag) Set

func (list *StringListFlag) Set(val string) error

func (*StringListFlag) String

func (list *StringListFlag) String() string

Jump to

Keyboard shortcuts

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