Help us shape the future of Go! Take the 2026 Go Developer Survey

flag

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: MPL-2.0 Imports: 1 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterArgs

func FilterArgs(fs *flag.FlagSet, args []string) ([]string, []string, []string)

FilterArgs filters the args slice to only include the the flags in the given flagset and returns a new arg slice that has the included args as well as a slice that has only the excluded args. The final returned slice is the positional arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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