Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinusOperator ¶
type MinusOperator struct {
*OperatorBase
}
func (*MinusOperator) Result ¶
func (m *MinusOperator) Result() int
type MinusOperatorFactory ¶
type MinusOperatorFactory struct{}
func (MinusOperatorFactory) Create ¶
func (MinusOperatorFactory) Create() Operator
type OperatorBase ¶
type OperatorBase struct {
// contains filtered or unexported fields
}
func (*OperatorBase) SetA ¶
func (o *OperatorBase) SetA(a int)
func (*OperatorBase) SetB ¶
func (o *OperatorBase) SetB(b int)
type OperatorFactory ¶
type OperatorFactory interface {
Create() Operator
}
type PlusOperator ¶
type PlusOperator struct {
*OperatorBase
}
func (*PlusOperator) Result ¶
func (o *PlusOperator) Result() int
type PlusOperatorFactory ¶
type PlusOperatorFactory struct { }
func (PlusOperatorFactory) Create ¶
func (PlusOperatorFactory) Create() Operator
Click to show internal directories.
Click to hide internal directories.