flagnet

package module
v0.0.0-...-5d34715 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package flagnet provides helpers for the standard package 'flag' for parsing host:port and host flags

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value interface {
	String() string
	Set(string) error
	Get() interface{}
}

Value is like flag.Getter (which is a superset of flag.Value).

func Host

func Host(value *string) Value

func HostPort

func HostPort(value *string, defaultPort int) Value

Jump to

Keyboard shortcuts

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