helpers

package
v0.0.0-...-bc1425f Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DotNetJSONTimeToRFC3339

func DotNetJSONTimeToRFC3339(jsonTime string, isUTC bool) (string, error)

DotNetJSONTimeToRFC3339 Converts the .Net formatted time returned by the Xero API to a more readable format

func FormatDate

func FormatDate(date time.Time) string

FormatDate returns an RFC3339 formatted date with a 0 valued time as required by many Xero endpoints

func ReadPrivateKeyFromPath

func ReadPrivateKeyFromPath(privateKeyFilePath string) string

func ReaderToString

func ReaderToString(reader io.ReadCloser) string

ReaderToString converts an io.ReadCloser to a string

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.

Jump to

Keyboard shortcuts

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