mirror of
https://github.com/fxkt-tech/liv
synced 2025-09-26 20:11:20 +08:00
17 lines
275 B
Go
17 lines
275 B
Go
package input
|
|
|
|
type OptionFunc func(*option)
|
|
|
|
type option struct {
|
|
i string // i is input file.
|
|
ss int64 // ss is starttime.
|
|
t int64 // t is duration.
|
|
ext []string // extra params.
|
|
}
|
|
|
|
func SetI(i string) OptionFunc {
|
|
return func(o *option) {
|
|
o.i = i
|
|
}
|
|
}
|