encoding/gocode: simplify testdata/gen.go
We can use cue/load directly to load all CUE packages in one go.
This saves us having to manually read the directory and loop.
Moreover, we can use a simpler cue/load.Config as well.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2290bfa4f6e4352e54df8dc5dad0c45ef01f5f19
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201335
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>