mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
12 lines
202 B
Go
12 lines
202 B
Go
// +build !windows
|
|
|
|
package fasthttp
|
|
|
|
func addLeadingSlash(dst, src []byte) []byte {
|
|
// add leading slash for unix paths
|
|
if len(src) == 0 || src[0] != '/' {
|
|
dst = append(dst, '/')
|
|
}
|
|
|
|
return dst
|
|
}
|