syncthing/lib/build
Jakob Borg a3c724f2c3
all: Add build constants for runtime.GOOS comparisons (#8442)
all: Add package runtimeos for runtime.GOOS comparisons

I grew tired of hand written string comparisons. This adds generated
constants for the GOOS values, and predefined Is$OS constants that can
be iffed on. In a couple of places I rewrote trivial switch:es to if:s,
and added Illumos where we checked for Solaris (because they are
effectively the same, and if we're going to target one of them that
would be Illumos...).
2022-07-28 19:36:39 +02:00
..
build.go lib/api: Returns tags in version as list (#7190) 2020-12-10 12:22:09 +01:00
build_test.go all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00
runtimeos.gen.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
runtimeos.sh all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
tags_race.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00