flags

package
v0.0.0-...-a345a4b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLsValue

type URLsValue types.URLs

URLsValue define a slice of URLs as a type

func NewURLsValue

func NewURLsValue(init string) (*URLsValue, error)

NewURLsValue return a URLsValue from a string of URLs list

func (*URLsValue) HostList

func (us *URLsValue) HostList() []string

HostList return an list of host:port

func (*URLsValue) HostString

func (us *URLsValue) HostString() string

HostString return a string of host:port format list separated by comma

func (*URLsValue) Set

func (us *URLsValue) Set(s string) error

Set parses a command line set of URLs formatted like: http://127.0.0.1:2380,http://10.1.1.2:80

Jump to

Keyboard shortcuts

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