mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +00:00
a3c724f2c3
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...). |
||
---|---|---|
.. | ||
testdata | ||
.gitignore | ||
blockqueue.go | ||
blocks_test.go | ||
blocks.go | ||
debug.go | ||
doc.go | ||
virtualfs_test.go | ||
walk_test.go | ||
walk.go |