Documentation ¶
Index ¶
- Variables
- type URL
- func (u *URL) AddEncodingExceptions(exceptions map[string]string)
- func (u *URL) AddPath(paths ...string) *URL
- func (u *URL) GetFirstQueryParam(name string) (string, bool)
- func (u *URL) HasQueryParam(name string) bool
- func (u *URL) RemoveQueryParam(name string)
- func (u *URL) String() string
- func (u *URL) ToURL() (*url.URL, error)
- func (u *URL) WithQueryParam(name, value string)
- func (u *URL) WithQueryParamList(name string, values []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidURL = errors.New("URL format is incorrect")
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
URL focuses on query params and treats the rest as immutable string. You can use any URL string to construct this object. Its primary goal is to "Expose Query Manipulation". Under the hood it uses url.URL library.
func (*URL) AddEncodingExceptions ¶
func (*URL) HasQueryParam ¶
func (*URL) RemoveQueryParam ¶
func (*URL) WithQueryParam ¶
func (*URL) WithQueryParamList ¶
Click to show internal directories.
Click to hide internal directories.