]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add a simple version number parser
authorAustin Clements <austin@google.com>
Mon, 2 Dec 2019 22:32:01 +0000 (17:32 -0500)
committerAustin Clements <austin@google.com>
Thu, 5 Dec 2019 01:48:12 +0000 (01:48 +0000)
commitfa3a121a79f85a4c957f29372b5ebfde7211a980
tree499bc58b5e809186bd76d63b072dc7cabab1493a
parent709dbd28708eab97993ca06adea74be392c05c1c
runtime: add a simple version number parser

This will be used to parse the Linux kernel versions, but this code is
generic and can be tested on its own.

For #35777.

Change-Id: If1df48d07250e5855dde45bc9d57c66f777b9fb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/209597
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/export_test.go
src/runtime/string.go
src/runtime/string_test.go