diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-08-24 05:44:43 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-08-24 19:26:05 +0000 |
| commit | daea3ebe1e86d669ba2762a1f83ce4a5d15f8a12 (patch) | |
| tree | 5b419b9dbdb389499cd26ec3175df2479b66a8ee /internal/testing/sample/sample.go | |
| parent | 9772db757679384861202400baf636292ccd84d4 (diff) | |
| download | go-x-pkgsite-daea3ebe1e86d669ba2762a1f83ce4a5d15f8a12.tar.xz | |
internal/datasource: factor out getters
Move the list of getters into the common dataSource implementation.
Also, have the constructor take the list getters initially. It
simplifies the state of the dataSource (no chance of someone adding a
getter after some modules have been fetched).
For golang/go#47780
Change-Id: I08b005da13b7bd1ad784ceaf30d722da634009b2
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344669
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/testing/sample/sample.go')
0 files changed, 0 insertions, 0 deletions
