Documentation ¶
Index ¶
- Variables
- type Audio
- func (obj *Audio) ConvertMggToMp3(umPath string, ffmpegPath string, mggPath string, oggPath string, ...)
- func (obj *Audio) ConvertMggToOgg(umPath string, mggPath string, oggPath string)
- func (obj *Audio) ConvertOggToMp3(ffmpegPath string, oggPath string, mp3Path string)
- func (obj *Audio) ConvertOggToMp3Async(ffmpegPath string, oggPath string, mp3Path string, maxG int)
- func (obj *Audio) DeleteFilenameBlank(root string)
- type DingTalk
- type Nepal
- func (obj *Nepal) GetRandomNum(N, M int) (result int)
- func (obj *Nepal) GetRandomString(n int) (result string)
- func (obj *Nepal) GetRootPath() (root string)
- func (obj *Nepal) ReadFileToSlice(filepath string) (lines []string)
- func (obj *Nepal) StructToSlice(slice interface{}, addFieldName bool) [][]interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var DAudio = &Audio{}
View Source
var DNepal = &Nepal{}
Functions ¶
This section is empty.
Types ¶
type Audio ¶ added in v1.0.7
type Audio struct{}
func (*Audio) ConvertMggToMp3 ¶ added in v1.0.7
func (obj *Audio) ConvertMggToMp3(umPath string, ffmpegPath string, mggPath string, oggPath string, mp3Path string, maxG int)
ConvertMggToMp3 格式化文件名、解密、转换一步到位
func (*Audio) ConvertMggToOgg ¶ added in v1.0.7
ConvertMggToOgg 通过um将mgg格式解密为ogg格式
func (*Audio) ConvertOggToMp3 ¶ added in v1.0.7
ConvertOggToMp3 通过ffmpeg将ogg转换为mp3格式
func (*Audio) ConvertOggToMp3Async ¶ added in v1.0.7
ConvertOggToMp3Async 通过ffmpeg将ogg转换为mp3格式,并发模式
func (*Audio) DeleteFilenameBlank ¶ added in v1.0.7
DeleteFilenameBlank 遍历目录,删除文件名中的空格并重命名
type DingTalk ¶ added in v1.0.7
DingTalk https://open.dingtalk.com/document/robots/customize-robot-security-settings
func NewDingTalk ¶ added in v1.0.7
func (*DingTalk) SendMsgToDingDing ¶ added in v1.0.7
SendMsgToDingDing 钉钉机器人发送消息
type Nepal ¶ added in v1.0.7
type Nepal struct{}
func (*Nepal) GetRandomNum ¶ added in v1.0.7
GetRandomNum 获取N~M之间的随机整数,N<=M
func (*Nepal) GetRandomString ¶ added in v1.0.7
GetRandomString 获取偶数位随机字符串
func (*Nepal) GetRootPath ¶ added in v1.0.7
GetRootPath 获取项目根路径,请将函数复制到自己的项目中使用,不能直接调用!
func (*Nepal) ReadFileToSlice ¶ added in v1.0.7
ReadFileToSlice 将文件中的所有非空行读入切片
func (*Nepal) StructToSlice ¶ added in v1.0.7
StructToSlice 将任意结构体切片转换为二维切片[][]interface{}
Click to show internal directories.
Click to hide internal directories.