Documentation ¶
Index ¶
- func Encode(str string, encoding string) (string, error)
- func UrlAddParams(rawUrl string, params url.Values) (string, error)
- func UrlEncode(params map[string]string, encoding string) (string, error)
- type UrlBuilder
- func (builder *UrlBuilder) AddQueries(queries map[string]string) *UrlBuilder
- func (builder *UrlBuilder) AddQuery(key string, value string) *UrlBuilder
- func (builder *UrlBuilder) Build() *url.URL
- func (builder *UrlBuilder) BuildString() string
- func (builder *UrlBuilder) GetQuery() url.Values
- func (builder *UrlBuilder) GetUrl() *url.URL
- func (builder *UrlBuilder) SetQuery(key string, value string) *UrlBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UrlAddParams ¶
UrlAddParams 链接添加参数
Types ¶
type UrlBuilder ¶
type UrlBuilder struct {
// contains filtered or unexported fields
}
func ParseUrl ¶
func ParseUrl(rawUrl string) *UrlBuilder
func (*UrlBuilder) AddQueries ¶
func (builder *UrlBuilder) AddQueries(queries map[string]string) *UrlBuilder
func (*UrlBuilder) AddQuery ¶
func (builder *UrlBuilder) AddQuery(key string, value string) *UrlBuilder
func (*UrlBuilder) Build ¶
func (builder *UrlBuilder) Build() *url.URL
func (*UrlBuilder) BuildString ¶
func (builder *UrlBuilder) BuildString() string
func (*UrlBuilder) GetQuery ¶
func (builder *UrlBuilder) GetQuery() url.Values
func (*UrlBuilder) GetUrl ¶
func (builder *UrlBuilder) GetUrl() *url.URL
func (*UrlBuilder) SetQuery ¶
func (builder *UrlBuilder) SetQuery(key string, value string) *UrlBuilder
Click to show internal directories.
Click to hide internal directories.