addrs

package module
v0.0.0-...-0c80801 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: BSD-3-Clause Imports: 5 Imported by: 4

README

Documentation

Overview

Package addrs provides flags to define one or an array of net.Addr.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagManyVar

func FlagManyVar(dest *[]net.Addr, name string, addrs string, usage string)

FlagManyVar sets a slice of net.Addr by a flag. The values are expected to be comma separated list of net:host:port triples.

func FlagOneVar

func FlagOneVar(dest *net.Addr, name string, addr string, usage string)

FlagOneVar sets a single net.Addr by a flag. The value is expected to be a colon separated net:host:port.

func FlagSetManyVar

func FlagSetManyVar(set *flag.FlagSet, dest *[]net.Addr, name string, addrs string, usage string)

FlagSetManyVar sets a slice of net.Addr by a flag in a flag.FlagSet. The values are expected to be comma separated list of net:host:port triples.

func FlagSetOneVar

func FlagSetOneVar(set *flag.FlagSet, dest *net.Addr, name string, addr string, usage string)

FlagSetOneVar sets a single net.Addr by a flag in a flag.FlagSet. The value is expected to be a colon separated net:host:port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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