Documentation
¶
Index ¶
- func DecodeBytes(data []byte) string
- func ExchangeMarkDownImageUrl(ctx context.Context, mdContent []byte, ...) (string, error)
- func GetHeaderMap(header string) map[string]string
- func GetHttpClientWithAPIHeaderMap(header string) *http.Client
- func GetQuery(req *domain.ModelListReq) (request.Query, error)
- func GetTitleFromMarkdown(markdown string) string
- func HTTPGet(url string) ([]byte, error)
- func IsURLValid(urlStr string) bool
- func RemoveFirstDir(path string) string
- func RemoveURLParams(rawURL string) (string, error)
- func URLNormalize(urlStr string) string
- func URLRemovePath(rawURL string) (string, error)
- func UrlEncode(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTitleFromMarkdown ¶
func RemoveFirstDir ¶
func RemoveURLParams ¶
RemoveURLParams 去除 URL 中的查询参数
func URLRemovePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.