Documentation
¶
Index ¶
- func BuildCardMessageCols(titleK, titleV string, kvMap map[string]interface{}) (res []interface{}, err error)
- func ForDebug(test ...interface{})
- func GetChannnelInfo(channelID string) (channelInfo *khl.Channel, err error)
- func GetCurrentTime() (localTime string)
- func GetGuildInfo(guildID string) (guildInfo *khl.Guild, err error)
- func GetOutBoundIP() (ip string, err error)
- func GetUserInfo(userID, guildID string) (userInfo *khl.User, err error)
- func IsInSlice(target string, slice []string) bool
- func MustAtoI(str string) int
- func Struct2Map(obj interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCardMessageCols ¶ added in v0.0.5
func BuildCardMessageCols(titleK, titleV string, kvMap map[string]interface{}) (res []interface{}, err error)
BuildCardMessageCols 创建卡片消息的列
func GetChannnelInfo ¶ added in v0.0.5
GetChannnelInfo 获取频道信息
@param channelID @return channelInfo @return err
func GetGuildInfo ¶ added in v0.0.5
GetGuildInfo 获取公会信息
@param guildID @return guildInfo @return err
func Struct2Map ¶ added in v0.0.5
func Struct2Map(obj interface{}) map[string]interface{}
Struct2Map 将结构体转换为map
@param obj @return map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.