syncthing/cmd/syncthing
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
..
cli cmd/syncthing: Incorrect error handling 2022-07-28 18:51:22 +02:00
cmdutil cmd/syncthing: Add --skip-port-probing (fixes #8090) (#8099) 2022-01-07 11:19:17 +01:00
decrypt cmd/syncthing: Apply file permissions and modtimes when decrypting (#8412) 2022-07-04 10:57:45 +02:00
generate all: Clean up fmt.Errorf usage (#8309) 2022-04-27 20:30:13 +02:00
.gitignore Repair model tests 2014-03-30 21:59:40 +02:00
.stfolder Merge remote-tracking branch 'syncthing/pr/1577' 2015-04-06 20:53:32 +02:00
blockprof.go cmd/syncthing: Refactor command line parsing (#7330) 2021-02-10 20:35:37 +01:00
crash_reporting.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
crash_reporting_test.go lib/ur: Implement crash (panic) reporting (fixes #959) (#5702) 2019-06-11 08:19:11 +02:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
heapprof.go cmd/syncthing: Refactor command line parsing (#7330) 2021-02-10 20:35:37 +01:00
main.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
monitor.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
monitor_test.go all: use T.TempDir to create temporary test directory (#8280) 2022-04-15 07:44:06 +04:00
openurl_unix.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
openurl_windows.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
perfstats_unix.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
perfstats_unsupported.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
traceback.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00