flagx

package
v0.0.0-...-9d5629b Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package flagx contains helper types for parsing command line arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbsURL

type AbsURL struct {
	url.URL
}

func (*AbsURL) Set

func (a *AbsURL) Set(s string) error

type IP

type IP struct {
	net.IP
}

IP is a flag.Value accepts IP addresses.

func (*IP) Set

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

type TCPAddr

type TCPAddr struct {
	Addr *net.TCPAddr
}

TCPAddr is a flag.Value that accepts a TCP address, for example "127.0.0.1:8000".

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