Documentation ¶
Index ¶
- Constants
- func ColumnPrintToPDF(aid int, filename string, cookies map[string]string) error
- func FileName(name string, ext string) string
- func FilePath(name, ext string, escape bool) (string, error)
- func FileSize(filePath string) (int, bool, error)
- func LimitLength(s string, length int) string
- func M3u8URLs(uri string) ([]string, error)
- func MergeAudioAndVideo(paths []string, mergedFilePath string) error
- func MergeToMP4(paths []string, mergedFilePath string, filename string) error
- func Mkdir(elem ...string) (string, error)
- func UnmarshalJSON(data []byte, v interface{}) error
- func UnmarshalReader(r io.Reader, v interface{}) error
- type WaitGroupPool
Constants ¶
View Source
const MAXLENGTH = 80
MAXLENGTH Maximum length of file name
Variables ¶
This section is empty.
Functions ¶
func ColumnPrintToPDF ¶
ColumnPrintToPDF print pdf
func MergeAudioAndVideo ¶
MergeAudioAndVideo merge audio and video
func MergeToMP4 ¶
MergeToMP4 merge video parts to MP4
func UnmarshalJSON ¶
UnmarshalJSON 将 r 中的 json 格式的数据, 解析到 v
func UnmarshalReader ¶
UnmarshalReader 将 r 中的 json 格式的数据, 解析到 v
Types ¶
type WaitGroupPool ¶
type WaitGroupPool struct {
// contains filtered or unexported fields
}
WaitGroupPool pool of WaitGroup
func NewWaitGroupPool ¶
func NewWaitGroupPool(size int) *WaitGroupPool
NewWaitGroupPool creates a sized pool for WaitGroup
func (*WaitGroupPool) Add ¶
func (p *WaitGroupPool) Add()
Add adds delta, which may be negative, to the WaitGroup counter. See sync.WaitGroup documentation for more information.
func (*WaitGroupPool) Done ¶
func (p *WaitGroupPool) Done()
Done decrements the WaitGroup counter by one. See sync.WaitGroup documentation for more information.
func (*WaitGroupPool) Wait ¶
func (p *WaitGroupPool) Wait()
Wait blocks until the WaitGroup counter is zero. See sync.WaitGroup documentation for more information.
Click to show internal directories.
Click to hide internal directories.