Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicPath ¶
type PublicPath string
PublicPath represents the path to the public directory of a WordPress site. We use this type to consistently ensure that the path ends with a slash when used as a string.
func (PublicPath) String ¶
func (p PublicPath) String() string
type SiteUrl ¶
type SiteUrl string
SiteUrl represents a URL to a WordPress site. We use this type to consistently ensure that the URL is valid.
func NewSiteUrl ¶
NewSiteUrl is a constructor that returns a SiteUrl. It returns an error if the URL is invalid.
func (SiteUrl) Domain ¶
Domain returns the domain of the SiteUrl without the protocol. For example, if the SiteUrl is https://example.com, this method will return example.com.
Click to show internal directories.
Click to hide internal directories.