mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Update README.md
This commit is contained in:
parent
8b4ba7fd43
commit
1cdd063d0b
|
@ -987,7 +987,7 @@ However, other than this being a very messy function signature, we also have ano
|
|||
One way to solve this issue, is to change our concat function. In the example below, I have changed it to only take a single byte array as input argument, but it could just as well have been the opposite case.
|
||||
|
||||
```go
|
||||
func concat(data []byte) func([]byte) ([]byte, error) {
|
||||
func concat(data []byte) func(data []byte) ([]byte, error) {
|
||||
return func(concatting []byte) ([]byte, error) {
|
||||
return append(data, concatting), nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue