Documentation
¶
Index ¶
- func DotNetJSONTimeToRFC3339(jsonTime string, isUTC bool) (string, error)
- func FormatDate(date time.Time) string
- func ReadPrivateKeyFromPath(privateKeyFilePath string) string
- func ReaderToString(reader io.ReadCloser) string
- func StringInSlice(str string, list []string) bool
- func TodayRFC3339() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DotNetJSONTimeToRFC3339 ¶
DotNetJSONTimeToRFC3339 Converts the .Net formatted time returned by the Xero API to a more readable format
func FormatDate ¶
FormatDate returns an RFC3339 formatted date with a 0 valued time as required by many Xero endpoints
func ReadPrivateKeyFromPath ¶
func ReaderToString ¶
func ReaderToString(reader io.ReadCloser) string
ReaderToString converts an io.ReadCloser to a string
func StringInSlice ¶
func TodayRFC3339 ¶
func TodayRFC3339() string
TodayRFC3339 returns an RFC3339 formatted date with a 0 valued time as required by many Xero endpoints
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.