// 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.// +build darwin dragonfly freebsd linux netbsd openbsd solarispackageunixfuncitoa(valint)string{// do it here rather than with fmt to avoid dependencyifval<0{return"-"+uitoa(uint(-val))}returnuitoa(uint(val))}funcuitoa(valuint)string{varbuf[32]byte// big enough for int64i:=len(buf)-1forval>=10{buf[i]=byte(val%10+'0')i--val/=10}buf[i]=byte(val+'0')returnstring(buf[i:])}