Refactor application structure and initialize core components
I decided to rewrite the program taking into account the experience gained.
This commit is contained in:
19
internal/ffmpeg/ffplay.go
Normal file
19
internal/ffmpeg/ffplay.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user