{"modulePath":"github.com/Method-Security/methodaws","version":"v0.0.36","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package core\n\n## Functions\n\n```go\nfunc ExtractExtraProperties(bytes []byte, value interface{}, exclude ...string) (map[string]interface{}, error)\n```\nExtractExtraProperties extracts any extra properties from the given value.\n\n```go\nfunc MarshalJSONWithExtraProperties(marshaler interface{}, extraProperties map[string]interface{}) ([]byte, error)\n```\nMarshalJSONWithExtraProperties marshals the given value to JSON, including any extra properties.\n\n```go\nfunc MarshalJSONWithExtraProperty(marshaler interface{}, key string, value interface{}) ([]byte, error)\n```\nMarshalJSONWithExtraProperty marshals the given value to JSON, including the extra property.\n\n```go\nfunc StringifyJSON(value interface{}) (string, error)\n```\nStringifyJSON returns a pretty JSON string representation of the given value.\n\n## Types\n\n```go\ntype Date struct {\n\t// contains filtered or unexported fields\n}\n```\nDateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date (e.g. 2006-01-02).\n\nRef: [https://ijmacd.github.io/rfc3339-iso8601](https://ijmacd.github.io/rfc3339-iso8601)\n\n```go\nfunc NewDate(t time.Time) *Date\n```\nNewDate returns a new \\*Date. If the given time.Time is nil, nil will be returned.\n\n```go\nfunc NewOptionalDate(t *time.Time) *Date\n```\nNewOptionalDate returns a new \\*Date. If the given time.Time is nil, nil will be returned.\n\n```go\nfunc (d *Date) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (d *Date) Time() time.Time\n```\nTime returns the Date's underlying time, if any. If the date is nil, the zero value is returned.\n\n```go\nfunc (d *Date) TimePtr() *time.Time\n```\nTimePtr returns a pointer to the Date's underlying time.Time, if any.\n\n```go\nfunc (d *Date) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype DateTime struct {\n\t// contains filtered or unexported fields\n}\n```\nDateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date-time (e.g. 2017-07-21T17:32:28Z).\n\nRef: [https://ijmacd.github.io/rfc3339-iso8601](https://ijmacd.github.io/rfc3339-iso8601)\n\n```go\nfunc NewDateTime(t time.Time) *DateTime\n```\nNewDateTime returns a new \\*DateTime.\n\n```go\nfunc NewOptionalDateTime(t *time.Time) *DateTime\n```\nNewOptionalDateTime returns a new \\*DateTime. If the given time.Time is nil, nil will be returned.\n\n```go\nfunc (d *DateTime) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (d *DateTime) Time() time.Time\n```\nTime returns the DateTime's underlying time, if any. If the date-time is nil, the zero value is returned.\n\n```go\nfunc (d *DateTime) TimePtr() *time.Time\n```\nTimePtr returns a pointer to the DateTime's underlying time.Time, if any.\n\n```go\nfunc (d *DateTime) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/Method-Security/methodaws/generated/go/core","name":"core","synopsis":"","isRedistributable":true}
