Documentation ¶
Index ¶
- Variables
- func SliceToSlice[T any, U any](from []T, to *[]U) error
- type AudioUtil
- func (A *AudioUtil) IsMp3Header(data []byte) bool
- func (a *AudioUtil) IsValidAudioFile(filePath string) bool
- func (a *AudioUtil) IsWavHeader(data []byte) bool
- func (a *AudioUtil) TrimMp3File(filePath string, start, length int) ([]byte, error)
- func (a *AudioUtil) TrimWavFile(filePath string, start, length int) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ReflectUtil reflectUtil
View Source
var StringUtil stringUtil
View Source
var StructUtil structUtil
Functions ¶
func SliceToSlice ¶
Types ¶
type AudioUtil ¶ added in v1.7.3
type AudioUtil struct{}
func (*AudioUtil) IsMp3Header ¶ added in v1.7.3
func (*AudioUtil) IsValidAudioFile ¶ added in v1.7.3
func (*AudioUtil) IsWavHeader ¶ added in v1.7.3
func (*AudioUtil) TrimMp3File ¶ added in v1.7.3
裁剪 MP3 文件的指定部分并返回裁剪后的音频数据
Click to show internal directories.
Click to hide internal directories.