You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Daniel Martí 1c564ef091 slightly improve code thanks to Go 1.18 APIs
strings.Cut makes some string handling code more intuitive.
Note that we can't use it everywhere, as some places need LastIndexByte.

Start using x/exp/slices, too, which is our first use of generics.
Note that its API is experimental and may still change,
but since we are not a library, we can control its version updates.

I also noticed that we were using TrimSpace for importcfg files.
It's actually unnecessary if we swap strings.SplitAfter for Split,
as the only whitespace present was the trailing newline.

While here, I noticed an unused copy of printfWithoutPackage.
3 years ago
..
asm.txt all: drop support for Go 1.17 3 years ago
basic.txt all: drop support for Go 1.17 3 years ago
cgo.txt all: drop support for Go 1.17 3 years ago
crossbuild.txt all: drop support for Go 1.17 3 years ago
debugdir.txt all: drop support for Go 1.17 3 years ago
embed.txt all: drop support for Go 1.17 3 years ago
gogarble.txt all: drop support for Go 1.17 3 years ago
goversion.txt all: drop support for Go 1.17 3 years ago
help.txt give a useful error for "garble build -tiny" 3 years ago
implement.txt all: drop support for Go 1.17 3 years ago
imports.txt slightly improve code thanks to Go 1.18 APIs 3 years ago
init.txt all: drop support for Go 1.17 3 years ago
ldflags.txt all: drop support for Go 1.17 3 years ago
linkname.txt all: drop support for Go 1.17 3 years ago
literals.txt all: drop support for Go 1.17 3 years ago
modinfo.txt all: drop support for Go 1.17 3 years ago
plugin.txt all: drop support for Go 1.17 3 years ago
position.txt all: drop support for Go 1.17 3 years ago
reflect.txt slightly improve code thanks to Go 1.18 APIs 3 years ago
reverse.txt all: drop support for Go 1.17 3 years ago
seed-cache.txt all: drop support for Go 1.17 3 years ago
seed.txt all: drop support for Go 1.17 3 years ago
syntax.txt all: drop support for Go 1.17 3 years ago
test.txt all: drop support for Go 1.17 3 years ago
tiny.txt all: drop support for Go 1.17 3 years ago