Documentation ¶
Index ¶
- func DatasetVersionURL(datasetID, edition, version string) string
- func ExtractDatasetInfoFromPath(path string) (datasetID, edition, version string, err error)
- func GenerateSharingLink(socialType, currentURL, title string) string
- func GetAPIRouterVersion(rawurl string) (string, error)
- func GetCurrentURL(lang, siteDomain, urlPath string) string
- func HasStringInSlice(a string, list []string) bool
- func IsBoolPtr(val *bool) bool
- func PersistExistingParams(values []string, key, ignoreValue string, q url.Values)
- func ToBoolPtr(val bool) *bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatasetVersionURL ¶ added in v1.56.0
DatasetVersionURL constructs a dataset version URL from the provided datasetID, edition and version values
func ExtractDatasetInfoFromPath ¶
ExtractDatasetInfoFromPath gets the datasetID, edition and version from a given path
func GenerateSharingLink ¶ added in v1.28.0
GenerateSharingLink returns a sharing link for different types of social media
func GetAPIRouterVersion ¶ added in v1.18.0
GetAPIRouterVersion returns the path of the provided url, which corresponds to the api router version
func GetCurrentURL ¶ added in v1.56.0
GetCurrentURL returns a string of the current URL from language, site domain and url path parameters
func HasStringInSlice ¶ added in v1.39.0
HasStringInSlice checks for a string within in a string array
func PersistExistingParams ¶ added in v1.39.0
PersistExistingParams persists existing query string values and ignores a given value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.