package
0.2.11
Repository: https://github.com/shipengqi/component-base.git
Documentation: pkg.go.dev

# Functions

DefaultTLSVersion defines the default TLS Version.
InitFlags normalizes, parses the command line flags.
InsecureTLSCipherNames returns a list of cipher suite names implemented by crypto/tls which have security issues.
InsecureTLSCiphers returns the cipher suites implemented by crypto/tls which have security issues.
NewColonSeparatedMultimapStringString takes a pointer to a map[string][]string and returns the ColonSeparatedMultimapStringString flag parsing shim for that map.
NewLangleSeparatedMapStringString takes a pointer to a map[string]string and returns the LangleSeparatedMapStringString flag parsing shim for that map.
NewMapStringBool takes a pointer to a map[string]string and returns the MapStringBool flag parsing shim for that map.
NewMapStringString takes a pointer to a map[string]string and returns the MapStringString flag parsing shim for that map.
NewMapStringStringNoSplit takes a pointer to a map[string]string and sets `NoSplit` value to `true` and returns the MapStringString flag parsing shim for that map.
NewNamedCertKeyArray creates a new NamedCertKeyArray with the internal value pointing to p.
No description provided by the author
No description provided by the author
PreferredTLSCipherNames returns a list of cipher suite names implemented by crypto/tls.
PrintAliases prints the aliases.
PrintExamples prints the examples.
PrintFlags logs the flags in the pflag.FlagSet.
PrintMore prints the more information.
PrintSections prints the given names flag sets in sections, with the maximal given column number.
PrintSubCommands prints the sub commands.
SetUsageAndHelpFunc set both usage and help function.
TLSCipherPossibleValues returns all acceptable cipher suite names.
TLSCipherSuites returns a list of cipher suite IDs from the cipher suite names passed.
TLSPossibleVersions returns all acceptable values for TLS Version.
TLSVersion returns the TLS Version ID for the version name passed.
WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators.
WordSepNormalizeFunc changes all flags that contain "_" separators.

# Constants

No description provided by the author
No description provided by the author
0.

# Structs

ColonSeparatedMultimapStringString supports setting a map[string][]string from an encoding that separates keys from values with ':' and separates key-value pairs with ','.
LangleSeparatedMapStringString can be set from the command line with the format `--flag "string<string"`.
MapStringBool can be set from the command line with the format `--flag "string=bool"`.
MapStringString can be set from the command line with the format `--flag "string=string"`.
NamedCertKey is a flag value parsing "certfile,keyfile" and "certfile,keyfile:name,name,name".
NamedCertKeyArray is a flag value parsing NamedCertKeys, each passed with its own flag instance (in contrast to comma separated slices).
NamedFlagSets stores named flag sets in the order of calling FlagSet.
NoOp implements goflag.Value and plfag.Value, but has a noop Set implementation.
StringFlag is a string flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.
StringSlice implements goflag.Value and plfag.Value, and allows set to be invoked repeatedly to accumulate values.

# Interfaces

OmitEmpty is an interface for flags to report whether their underlying value is "empty." If a flag implements OmitEmpty and returns true for a call to Empty(), it is assumed that flag may be omitted from the command line.
No description provided by the author

# Type aliases

No description provided by the author
Tristate is a flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.