3 ms·
It would be nice if Go could do this sort of chaining like jQuery makes so easy with Javascript: n, err := object .Process1(arg1, arg2) .Process2(
by hobobaggins 5y ago
It would be nice if Go could do this sort of chaining like jQuery makes so easy with Javascript:
n, err := object
.Process1(arg1, arg2)
.Process2(true)
.Process3("foo")
That would make these sorts of chains much easier to read.
- svnpenn 5y agoYou can do that now, just move the dots to end of line https://github.com/89z/googleplay/blob/v1.8.1/header.go#L126 https://github.com/89z/googleplay/blob/v1.8.1/header.go#L126