mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 01:11:55 +08:00
15 lines
250 B
Go
15 lines
250 B
Go
package qiniu
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
const qiniuHost = "https://api.qiniu.com"
|
|
|
|
func urlf(pathf string, pathargs ...any) string {
|
|
path := fmt.Sprintf(pathf, pathargs...)
|
|
path = strings.TrimPrefix(path, "/")
|
|
return qiniuHost + "/" + path
|
|
}
|