1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-22 04:56:09 +03:00

Nothing special on Strategy

This commit is contained in:
Gerasimos Maropoulos 2016-09-10 03:25:18 +03:00 committed by GitHub
parent 4b81980a1f
commit 9d31146eac

View File

@ -25,7 +25,7 @@ func (o *Operation) Operate(leftValue, rightValue int) int {
```go
type Addition struct{}
func (Addition) Apply(lval, rval int) int {
func (a Addition) Apply(lval, rval int) int {
return lval + rval
}
```