mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-25 22:46:05 +03:00
Nothing special on Strategy
This commit is contained in:
parent
4b81980a1f
commit
9d31146eac
@ -25,7 +25,7 @@ func (o *Operation) Operate(leftValue, rightValue int) int {
|
|||||||
```go
|
```go
|
||||||
type Addition struct{}
|
type Addition struct{}
|
||||||
|
|
||||||
func (Addition) Apply(lval, rval int) int {
|
func (a Addition) Apply(lval, rval int) int {
|
||||||
return lval + rval
|
return lval + rval
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user