mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
12 lines
213 B
Go
12 lines
213 B
Go
// +build windows
|
|
|
|
package fasthttp
|
|
|
|
func addLeadingSlash(dst, src []byte) []byte {
|
|
// zero length and "C:/" case
|
|
if len(src) == 0 || (len(src) > 2 && src[1] != ':') {
|
|
dst = append(dst, '/')
|
|
}
|
|
|
|
return dst
|
|
}
|