Registry / serialization / liamylian-jsontime-v2

liamylian-jsontime-v2

JSON →
library2.0.0gogounverified

A Go library for custom JSON time formatting and parsing with flexible time layouts.

go get github.com/liamylian/jsontime/v2
INSTALL
IMPORT
SIG · LIAMYLIAN-JSONTIME
L
liamylian-jsontime-v2
serializationgov2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsontime
github.com/liamylian/jsontime/v2

Unmarshal JSON with custom time format

package main import ( "fmt" "time" "github.com/liamylian/jsontime/v2" ) type Event struct { Time time.Time `json:"time"` } func main() { json := jsontime.NewWithFormat(time.RFC3339) data := `{"time":"2023-01-02T15:04:05Z"}` var e Event json.Unmarshal([]byte(data), &e) fmt.Println(e.Time) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
liamylian-jsontime-v2 — go get liamylian-jsontime-v2 · libregistry