]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify GOOS detection in mstart()
authorAyan George <ayan@ayan.net>
Thu, 1 Aug 2019 16:35:59 +0000 (12:35 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Aug 2019 18:37:57 +0000 (18:37 +0000)
commitb3a1205a1133328068f002dd44141cb9efb2127b
treec42304ba10c38698ae348413abcafd2e6ec0772b
parent4757518737c8866db012c6ca9ebe04597f12f5df
runtime: simplify GOOS detection in mstart()

The existing condition is long and repetitive.  Using select/case with
multiple values in the expression list is more concise and clearer.

Change-Id: I43f8abcf958e433468728f1d89ff1436332b29da
Reviewed-on: https://go-review.googlesource.com/c/go/+/188519
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/proc.go