Mageia Bugzilla – Attachment 9440 Details for
Bug 21103
golang new security issue CVE-2017-8932
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Package file containing string reverse function
reverse.go (text/plain), 323 bytes, created by
Len Lawrence
on 2017-06-22 18:36:06 CEST
(
hide
)
Description:
Package file containing string reverse function
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2017-06-22 18:36:06 CEST
Size:
323 bytes
patch
obsolete
>// Package stringutil contains utility functions for working with strings. >package stringutil > >// Reverse returns its argument string reversed rune-wise left to right. >func Reverse(s string) string { > r := []rune(s) > for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 { > r[i], r[j] = r[j], r[i] > } > return string(r) >}
// Package stringutil contains utility functions for working with strings. package stringutil // Reverse returns its argument string reversed rune-wise left to right. func Reverse(s string) string { r := []rune(s) for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 { r[i], r[j] = r[j], r[i] } return string(r) }
View Attachment As Raw
Actions:
View
Attachments on
bug 21103
:
9439
| 9440 |
9441
|
9450