An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.1% on proxy.golang.org
Top 7.0% forks on proxy.golang.org

proxy.golang.org : github.com/tebeka/jtime

How it works? Use jtime.Time in your struct, and before calling json.Marshal/json.Unmarashal set the marshaller using SetMarshaller. You can either write your own marshaller or use two of the available marshallers: * FormatMarshaller uses time.Time format to marshal/unmarshal time as JSON strings * UnixMarshaler marshal time.Time to JSON integers (with or without msec) jtime.Time embeds time.Time so you can use all time.Time methods with it. Example: Caution: Changing marshaller in mid-flight is dangerous :)

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/tebeka/jtime
License: MIT
Latest release: about 11 years ago
First release: over 11 years ago
Namespace: github.com/tebeka
Stars: 2 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago

    Loading...
    Readme
    Loading...