Documentation ¶
Index ¶
- func AddDefaultUriRoot(s string) string
- func AddUriRoot(s string, style OssImgStyle) string
- func AppendQuery(urlStr string, query map[string]string) string
- func ConnPath(r string, paths ...string) (full string)
- func ConnectUri(host string, paths ...string) string
- func DeleteUriRoot(s string) string
- func Init(domains string, styleAry []string)
- func QueryDecode(s string) string
- func QueryEncode(s string) string
- func QueryFromMap(m map[string]string) string
- func QueryToMap(urlStr string) map[string]string
- type OssImgStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultUriRoot ¶
func AddUriRoot ¶
func AddUriRoot(s string, style OssImgStyle) string
func AppendQuery ¶
AppendQuery uri后面拼接query参数
func ConnectUri ¶
ConnectUri host如果不包含http开头,则直接返回 返回格式:http://xxxx/xxx
func DeleteUriRoot ¶
func Init ¶
Init @Description: 初始化 @param domains 多个域名,分号隔开。第一个为默认输出的域名,其他域名在删除时会自动删除 @param styleAry 样式组,删除时会自动移除
func QueryToMap ¶
Types ¶
type OssImgStyle ¶
type OssImgStyle int8
const ( NullImgStyle OssImgStyle = iota DefaultImgStyle SmallImgStyle CoverImgStyle ImgTxtImgStyle BannerImgStyle )
Click to show internal directories.
Click to hide internal directories.