Documentation
¶
Overview ¶
Package scopeflag 提供按包 import path 正则过滤的共享 flag.Value 实现。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexFlag ¶
type RegexFlag struct {
// contains filtered or unexported fields
}
RegexFlag 在 flag 解析期即校验正则,非法值直接报错而不是运行期崩溃。
func (*RegexFlag) MatchDefault ¶ added in v0.17.0
MatchDefault evaluates the default scope only when no explicit regexp is set.
Click to show internal directories.
Click to hide internal directories.