Documentation
¶
Overview ¶
Example (One) ¶
video := VideoOutputter{}
video.Start()
screen := Screen{}
// VDI port is incompatible with HDMI port, so the
// following statement would cause a compile error:
//
// screen.SetInput(video.GetOutput())
//
// To solve this problem, we need to use an adapter.
adapter := HDMI2DVIAdapter{}
adapter.SetInput(video.GetOutput())
screen.SetInput(adapter.GetOutput())
screen.Play()
Output: 0123456789
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HDMI2DVIAdapter ¶
type HDMI2DVIAdapter struct {
// contains filtered or unexported fields
}
func (*HDMI2DVIAdapter) GetOutput ¶
func (a *HDMI2DVIAdapter) GetOutput() DVIPort
func (*HDMI2DVIAdapter) SetInput ¶
func (a *HDMI2DVIAdapter) SetInput(in HDMIPort)
type VideoOutputter ¶
type VideoOutputter struct {
// contains filtered or unexported fields
}
func (*VideoOutputter) GetOutput ¶
func (o *VideoOutputter) GetOutput() HDMIPort
func (*VideoOutputter) Start ¶
func (o *VideoOutputter) Start()
Click to show internal directories.
Click to hide internal directories.