]> Cypherpunks repositories - gostls13.git/commit
cmd/go: replace Action.Func with Action.Actor
authorRuss Cox <rsc@golang.org>
Mon, 7 Nov 2022 16:45:57 +0000 (11:45 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 8 Nov 2022 14:52:52 +0000 (14:52 +0000)
commita1c31d6803dac891b200b3598aa00224ab80c0bb
treefd5bb7b4cb43e0651f97c102e322c5d8c808198a
parentbe3184c4059e1ed69f74ad4e28b49e32a836b126
cmd/go: replace Action.Func with Action.Actor

The interface will let us store actor-specific state in the
interface implementation instead of continuing to grow
the Action struct. In the long term we should remove fields
from the struct that are not used by all Actions.

Change-Id: I8ac89eda7a91d742cee547a1f779e9f254dfd2f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/448356
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/run/run.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/exec.go