flag

package
v0.0.0-...-ea797f3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package flag contains flag unmarshalers for the github.com/jessevdk/go-flags parsing library.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyExt = errors.New("extension may not be empty")

ErrEmptyExt is returned when the user provides an empty extension.

Functions

This section is empty.

Types

type Ext

type Ext string

Ext represents a file extension being passed in by a user on the command-line.

func (*Ext) UnmarshalFlag

func (e *Ext) UnmarshalFlag(value string) error

UnmarshalFlag parses the raw string from the command line into a usable object. It normalizes the extension to contain a leading dot. An error will be returned if an empty extension is passed.

Jump to

Keyboard shortcuts

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