mirror of
https://github.com/americanexpress/baton.git
synced 2025-07-08 05:12:30 +00:00
13 lines
213 B
Go
13 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
|
|
}
|