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