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
..
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2020-08-07 07:47:48 +02:00
2021-08-17 10:10:41 +02:00
2020-05-13 21:46:24 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2022-07-26 08:24:58 +02:00
2022-07-26 08:24:58 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 17:32:45 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2022-01-30 17:21:21 +01:00
2022-03-24 08:36:43 +01:00
2021-08-17 10:10:41 +02:00
2022-04-05 21:32:06 +02:00
2021-08-17 10:10:41 +02:00
2021-08-17 10:10:41 +02:00
2022-04-05 21:32:06 +02:00
2022-07-28 19:36:39 +02:00
2021-08-17 10:10:41 +02:00
2022-07-28 17:32:45 +02:00
2022-04-15 07:44:06 +04:00
2022-07-26 08:24:58 +02:00
2022-07-28 19:36:39 +02:00
2022-04-15 07:44:06 +04:00
2022-07-28 17:32:45 +02:00
2020-08-25 08:11:14 +02:00
2020-10-02 08:07:05 +02:00
2021-08-17 10:10:41 +02:00
2021-02-20 14:56:45 +01:00
2019-10-04 13:03:34 +02:00
2022-07-28 17:32:45 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 17:55:29 +02:00
2020-06-18 22:32:26 +01:00
2020-06-18 08:15:47 +02:00
2021-11-22 08:59:47 +01:00
2020-06-18 08:15:47 +02:00
2022-07-28 19:36:39 +02:00
2022-07-26 08:24:58 +02:00
2021-05-17 20:43:07 +02:00
2021-05-17 20:43:07 +02:00
2022-07-28 17:32:45 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 17:32:45 +02:00
2022-07-26 08:24:58 +02:00
2021-08-29 10:47:53 +02:00
2022-07-28 19:36:39 +02:00
2020-08-25 08:11:14 +02:00
2020-10-02 08:07:05 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 19:36:39 +02:00
2022-07-28 17:32:45 +02:00