commit | 2edf467146b5fc89e484991587e3032c8421ae8c | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Thu Mar 17 10:38:59 2022 +0100 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Fri Mar 18 05:55:25 2022 +0000 |
tree | 2d36c27a3c8f87c90f071ebe4fea21874b96afb1 | |
parent | 51cd9980dadf015f085fdaa735da31d7242adc6d [diff] |
windows: optimize UTF16{,Ptr}FromString Use strings.IndexByte in UTF16FromString instead of an open-coded loop. Change-Id: Iac4374d9a58e40659147d35c9ab21bb89f5da629 Reviewed-on: https://go-review.googlesource.com/c/sys/+/393594 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.