Files
.github
alerting
client
config
controller
core
docs
examples
jsonpath
k8s
k8stest
metric
pattern
security
storage
util
vendor
cloud.google.com
github.com
go.etcd.io
golang.org
x
crypto
mod
net
oauth2
sys
internal
plan9
unix
windows
aliases.go
dll_windows.go
empty.s
env_windows.go
eventlog.go
exec_windows.go
memory_windows.go
mkerrors.bash
mkknownfolderids.bash
mksyscall.go
race.go
race0.go
security_windows.go
service.go
setupapierrors_windows.go
str.go
syscall.go
syscall_windows.go
types_windows.go
types_windows_386.go
types_windows_amd64.go
types_windows_arm.go
zerrors_windows.go
zknownfolderids_windows.go
zsyscall_windows.go
AUTHORS
CONTRIBUTORS
LICENSE
PATENTS
term
text
time
tools
xerrors
google.golang.org
gopkg.in
k8s.io
lukechampine.com
modernc.org
sigs.k8s.io
modules.txt
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE.md
Makefile
README.md
config.yaml
go.mod
go.sum
main.go
gatus/vendor/golang.org/x/sys/windows/str.go
TwinProduction cf923af230 Fix dependencies
2020-12-25 03:02:44 -05:00

23 lines
503 B
Go

// 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 windows
package windows
func itoa(val int) string { // do it here rather than with fmt to avoid dependency
if val < 0 {
return "-" + itoa(-val)
}
var buf [32]byte // big enough for int64
i := len(buf) - 1
for val >= 10 {
buf[i] = byte(val%10 + '0')
i--
val /= 10
}
buf[i] = byte(val + '0')
return string(buf[i:])
}