9 lines
128 B
Go
9 lines
128 B
Go
|
package s3utils
|
||
|
|
||
|
func PathFromHost(path, host string) string {
|
||
|
if len(host) > 0 {
|
||
|
return "/" + host + path
|
||
|
}
|
||
|
return path
|
||
|
}
|