concern_type

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

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 FromString

func FromString(s string) Type

FromString 从string中解析Type

func (Type) Add

func (t Type) Add(oList ...Type) Type

Add 把传入的type加入到t中 注意这个操作并不会改变t,而是返回操作后的type 如果要改变t,可以这样: t = t.Add(...)

func (Type) ContainAll

func (t Type) ContainAll(o Type) bool

ContainAll 如果t包含o的所有type,返回true

func (Type) ContainAny

func (t Type) ContainAny(o Type) bool

ContainAny 如果t包含o内任意一个type,返回true

func (Type) Empty

func (t Type) Empty() bool

Empty 如果t是空Type,返回true

func (Type) Intersection added in v1.0.8

func (t Type) Intersection(o Type) Type

Intersection 返回t和o的交集 注意这个操作并不会改变t,而是返回操作后的type 如果要改变t,可以这样: t = t.Intersection(...)

func (Type) IsTrivial

func (t Type) IsTrivial() bool

IsTrivial 检查t是否是单个type,即不是由多个type加起来的

func (Type) Remove

func (t Type) Remove(oList ...Type) Type

Remove 从t内删除传入的type 注意这个操作并不会改变t,而是返回操作后的type 如果要改变t,可以这样: t = t.Remove(...)

func (Type) Split

func (t Type) Split() []Type

Split 把t拆分成基本单位

func (Type) String

func (t Type) String() string

String 把Type转成string格式

Jump to

Keyboard shortcuts

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