mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
14 lines
209 B
Go
14 lines
209 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/url"
|
|
)
|
|
|
|
func main() {
|
|
parse, _ := url.Parse("http://localhost:5678/static")
|
|
|
|
imgURLPrefix := fmt.Sprintf("%s://%s", parse.Scheme, parse.Host)
|
|
fmt.Println(imgURLPrefix)
|
|
}
|