syncthing/lib
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
..
api all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
assets lib/assets: MIME types, time formats (#8351) 2022-05-22 22:10:18 +02:00
beacon all: Unused args, retvals, assignments (#7926) 2021-09-08 00:11:16 +02:00
build all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
config all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
connections all: Unused errors 2022-07-28 19:08:51 +02:00
db all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
dialer lib: Removal global connection registry (#8254) 2022-04-09 16:04:56 +02:00
discover all: Fix nested `if` with `else if` (#8467) 2022-07-28 19:14:22 +02:00
events all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
fs all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
ignore all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
locations all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
logger cmd/syncthing, lib/logger: Add date to default log format (fixes #8272) (#8273) 2022-04-15 07:46:14 +04:00
model all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
nat all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
osutil all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
pmp all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
protocol all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
rand all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
rc all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
relay all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
scanner all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
sha256 all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
signature all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
stats all: Truncate some timestamps (fixes #7457) (#7459) 2021-03-12 10:35:10 +01:00
stun all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
svcutil all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
sync lib/sync: Make the clock a function pointer 2021-11-27 15:35:07 +01:00
syncthing all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
testutils all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
tlsutil lib/syncthing: Clean up / refactor LoadOrGenerateCertificate() utility function. (#8025) 2021-11-07 23:59:48 +01:00
upgrade all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
upnp all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
ur all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
util all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
versioner all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
watchaggregator all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
weakhash all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00