vfsflags

package
v1.51.0-mod-v1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package vfsflags implements command line flags to set up a vfs

Index

Constants

This section is empty.

Variables

View Source
var (
	Opt       = vfs.DefaultOpt
	DirPerms  = &FileMode{Mode: &Opt.DirPerms}
	FilePerms = &FileMode{Mode: &Opt.FilePerms}
)

Options set by command line flags

Functions

func AddFlags

func AddFlags(flagSet *pflag.FlagSet)

AddFlags adds the non filing system specific flags to the command

Types

type FileMode

type FileMode struct {
	Mode *os.FileMode
}

FileMode is a command line friendly os.FileMode

func (*FileMode) Set

func (x *FileMode) Set(s string) error

Set a FileMode

func (*FileMode) String

func (x *FileMode) String() string

String turns FileMode into a string

func (*FileMode) Type

func (x *FileMode) Type() string

Type of the value

Jump to

Keyboard shortcuts

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