I decided to rewrite the program taking into account the experience gained.
20 lines
255 B
Go
20 lines
255 B
Go
package ffmpeg
|
|
|
|
type FFprobeContract interface {
|
|
SetPath(path string)
|
|
}
|
|
|
|
type ffprobe struct {
|
|
path string
|
|
}
|
|
|
|
func newFFprobe(path string) FFprobeContract {
|
|
return &ffprobe{
|
|
path: path,
|
|
}
|
|
}
|
|
|
|
func (f *ffprobe) SetPath(path string) {
|
|
f.path = path
|
|
}
|