11 lines
241 B
Go
11 lines
241 B
Go
|
package viewer
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
// DownloadUrl returns a download url based on hash, api uri, and download token.
|
||
|
func DownloadUrl(h, apiUri, downloadToken string) string {
|
||
|
return fmt.Sprintf("%s/dl/%s?t=%s", apiUri, h, downloadToken)
|
||
|
}
|