Movatterモバイル変換


[0]ホーム

URL:


flags

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:7Imported by:17

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

Package flags provide convenience types and routines to accept specific typesof flag values on the command line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcDurationSlice

func DurationSlice(namestring, defaultVal []time.Duration, usagestring) *[]time.Duration

DurationSlice returns a flag representing a slice of time.Duration objects.

funcIntSlice

func IntSlice(namestring, defaultVal []int, usagestring) *[]int

IntSlice returns a flag representing a slice of ints.

funcStringSliceadded inv1.27.0

func StringSlice(namestring, defaultVal []string, usagestring) *[]string

StringSlice returns a flag representing a slice of strings.

funcStringWithAllowedValues

func StringWithAllowedValues(name, defaultVal, usagestring, allowed []string) *string

StringWithAllowedValues returns a flag variable of typestringFlagWithAllowedValues configured with the provided parameters.'allowed` is the set of values that this flag can be set to.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp