Source File
str.go
Belonging Package
syscall
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
func ( int) string { // do it here rather than with fmt to avoid dependency
if < 0 {
return "-" + uitoa(uint(-))
}
return uitoa(uint())
}
func ( uint) string {
var [32]byte // big enough for int64
:= len() - 1
for >= 10 {
[] = byte(%10 + '0')
--
/= 10
}
[] = byte( + '0')
return string([:])
}