Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = &module.Module{ Name: "highlights", Config: &config, DgoHandlers: []interface{}{ onGuildCreate, messageCreate, onMemberCreate, onMemberLeave, }, Commands: []*drc.Command{ cConf, cAdmin, cMod, cHighlight, {Name: "hl", AliasText: []string{"highlight"}}, }, InitFunc: func(*module.Module) error { return nil }, OpenFunc: func(m *module.Module) error { db.s = enpsql.GetSession() return nil }, CloseFunc: func(*module.Module) { }, }
Module はエンコのmodule
Functions ¶
func NormaliseSpaces ¶
NormaliseSpaces turns all whitespace characters into the same space and strips out any multiples
func NormaliseString ¶
NormaliseString runs all the normalisation functions used currently, it does the following - converts to lowercase - Normalises all equivalent characters using unicode NFKC - Strips successive spaces and converts all space characters to be the same
Types ¶
Click to show internal directories.
Click to hide internal directories.