package
1.63.0
Repository: https://github.com/onsdigital/dp-renderer.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ConcatenateStrings takes a number of string arguments and concatenates them.
No description provided by the author
No description provided by the author
No description provided by the author
DatePeriodFormat will format a time-series date period string to a human accessible format e.g.
No description provided by the author
No description provided by the author
No description provided by the author
HasField checks to see if the field is present in the struct.
No description provided by the author
InitialiseLocalisationsHelper sets up the core and service specific localisations for use in the templates with the Localise helper function.
IntToString converts an interger to a string.
No description provided by the author
LegacyDataSetDownloadURI builds a URI string for a legacy dataset download URI.
No description provided by the author
Loop runs through the numbers provided and prints them out.
No description provided by the author
Markdown converts markdown to HTML.
Multiply multiplies two integers.
NotLastItem returns true/false based on if the index equals the length Example of use is in JSON-LD partials, where we must determine whether or not a comma should be rendered in a range.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TimeForma12h extracts time value for 12hr clock from ISO8601 formatted timestamps.
TimeFormat24h extracts time value for 24hr clock from ISO8601 formatted timestamps.
TrimPrefixedPeriod remove prefixed periods from the start of the string.
TruncateToMaximumCharacters returns a substring of parameter 'text' if the text is longer than the specified maximum length.

# Variables

No description provided by the author