parser

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Command string
	Args    []string
	// AtTarget 记录消息开头的@
	AtTarget int64
}

func NewParser

func NewParser() *Parser

func (*Parser) AtCheck

func (p *Parser) AtCheck() bool

func (*Parser) GetArgs

func (p *Parser) GetArgs() []string

func (*Parser) GetCmd

func (p *Parser) GetCmd() string

func (*Parser) GetCmdArgs

func (p *Parser) GetCmdArgs() []string

func (*Parser) Parse

func (p *Parser) Parse(e []message.IMessageElement)

Jump to

Keyboard shortcuts

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