all: minor wins with strings.Cut and utf8.AppendRune
Both of these APIs were added in Go 1.18.
Note that utf8.AppendRune already has a fast path for ASCII.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Icab92b3f194e8395eaafaeb3a35398e3258ced11
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557324
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>