Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*URLBuilder)
Option type for functional options
func WithBasePath ¶
WithBasePath sets the base path of the URL
func WithListQueryParam ¶
WithListQueryParam adds the query parameter multiple times to the URL. Once per element in the values slice.
func WithPathElement ¶
WithPathElement adds a path element to the URL
func WithQueryParam ¶
WithQueryParam adds a query parameter to the URL
type URLBuilder ¶
type URLBuilder struct {
// contains filtered or unexported fields
}
URLBuilder struct to hold the components of the URL
func NewURLBuilder ¶
func NewURLBuilder(options ...Option) *URLBuilder
NewURLBuilder creates a new URLBuilder with the given options
func (*URLBuilder) Build ¶
func (ub *URLBuilder) Build() string
Build constructs the final URL string
Click to show internal directories.
Click to hide internal directories.