flagx

package
Version: v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 4 Imported by: 4

Documentation

Overview

Package flagx contains helper types for parsing command line arguments.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPath = errors.New("empty path not allowed")

Functions

This section is empty.

Types

type AbsPath

type AbsPath string

AbsPath returns a flag.Value that wraps the given string and sets it to an absolute path.

func (*AbsPath) Set

func (a *AbsPath) Set(value string) error

func (AbsPath) String

func (a AbsPath) String() string

type TCPAddr

type TCPAddr struct {
	Addr *net.TCPAddr
}

TCPAddr returns a flag.Value that wraps the given string and sets it to an absolute path.

func (*TCPAddr) Set

func (a *TCPAddr) Set(value string) error

func (TCPAddr) String

func (a TCPAddr) String() string

Jump to

Keyboard shortcuts

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