Documentation ¶
Index ¶
Constants ¶
View Source
const ISOFormat = "2006-01-02T15:04:05.000Z07:00"
ISOFormat is a date format that generated by Javascript engine, which means it includes the millisecond, it is a little bit different to "RFC3339" format that ignore the millisecond.
Variables ¶
This section is empty.
Functions ¶
func GetRSAPrivateKey ¶
func GetRSAPrivateKey(fileName string) *rsa.PrivateKey
GetRSAPrivateKey returns RSA sign key
func GetRSAPublicKey ¶
GetRSAPublicKey returns RSA key of verification
func ToISODate ¶
ToISODate returns date with ISO string format based on location time zone. But returns error if location time zone is not a standard.
Example of return:
When the location is "UTC", it will return "2006-01-02T08:04:05.000Z", but if the location is "Asia/Jakarta", it will return "2006-01-02T15:04:05.000+07:00".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.