Documentation ¶
Index ¶
- Variables
- func NewAcNode(raw string) *acNode
- type AcMachine
- func (ac *AcMachine) Add(word string)
- func (ac *AcMachine) AddOfList(word []string)
- func (ac *AcMachine) Build()
- func (ac *AcMachine) Find(text string) []string
- func (ac *AcMachine) Load(path string) error
- func (ac *AcMachine) LoadOfFolder(folder embed.FS) error
- func (ac *AcMachine) LoadRemote(url string, timeout time.Duration) error
- func (ac *AcMachine) Match(text string) bool
- func (ac *AcMachine) Replace(text, target string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GetRemoteFail = errors.New("获取远程文件失败")
)
Functions ¶
Types ¶
type AcMachine ¶ added in v0.1.3
type AcMachine struct {
// contains filtered or unexported fields
}
func (*AcMachine) LoadOfFolder ¶ added in v0.1.3
LoadOfFolder 加载文件夹下所有文件
func (*AcMachine) LoadRemote ¶ added in v0.1.3
LoadRemote 加载远程文件 未验证内容格式是否正确 请自行判断
Click to show internal directories.
Click to hide internal directories.