helpers

package
v1.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatasetVersionUrl added in v1.16.0

func DatasetVersionUrl(datasetID string, edition string, version string) string

DatasetVersionUrl constructs a dataset version URL from the provided datasetID, edition and version values

func ExtractDatasetInfoFromPath

func ExtractDatasetInfoFromPath(path string) (datasetID, edition, version string, err error)

ExtractDatasetInfoFromPath gets the datasetID, edition and version from a given path

func GenerateSharingLink(socialType string, currentUrl string, title string) string

GenerateSharingLink returns a sharing link for different types of social media

func GetAPIRouterVersion added in v1.18.0

func GetAPIRouterVersion(rawurl string) (string, error)

GetAPIRouterVersion returns the path of the provided url, which corresponds to the api router version

func GetCurrentUrl added in v1.28.0

func GetCurrentUrl(lang string, siteDomain string, urlPath string) string

GetCurrentUrl returns a string of the current URL from language, site domain and url path parameters

func IsBoolPtr added in v1.34.0

func IsBoolPtr(val *bool) bool

IsBoolPtr determines if the given value is a pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL