mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-01-09 06:36:46 +07:00
13 lines
202 B
Go
13 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
|
||
|
}
|