package ffmpeg type FFplayContract interface { SetPath(path string) } type ffplay struct { path string } func newFFplay(path string) FFplayContract { return &ffplay{ path: path, } } func (f *ffplay) SetPath(path string) { f.path = path }