Documentation ¶
Index ¶
- Constants
- type Type
- func (t Type) Add(oList ...Type) Type
- func (t Type) ContainAll(o Type) bool
- func (t Type) ContainAny(o Type) bool
- func (t Type) Empty() bool
- func (t Type) Intersection(o Type) Type
- func (t Type) IsTrivial() bool
- func (t Type) Remove(oList ...Type) Type
- func (t Type) Split() []Type
- func (t Type) String() string
Constants ¶
View Source
const TypeSeparator = "/"
TypeSeparator 是 Type 的分割符号,所以定义 Type 时,不可以包含这个符号
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type string
Type 是ddbot标记的订阅类型
const Empty Type = ""
Empty 表示一个空 Type
func (Type) Intersection ¶ added in v1.0.8
Intersection 返回t和o的交集 注意这个操作并不会改变t,而是返回操作后的type 如果要改变t,可以这样: t = t.Intersection(...)
Click to show internal directories.
Click to hide internal directories.