Documentation
¶
Overview ¶
Package base implements core libraries used in multiple Moov projects. Refer to each projects documentation for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
Time is an time.Time struct that encodes and decodes in ISO 8601.
ISO 8601 is usable by a large array of libraries whereas RFC 3339 support isn't often part of language standard libraries.
func NewTime ¶
NewTime wraps a time.Time value in Moov's base.Time struct. If you need the underlying time.Time value call .Time:
now := Now() fmt.Println(start.Sub(now.Time))
func (Time) Equal ¶
Equal compares two Time values. Time values are considered equal if they both truncate to the same year/month/day and hour/minute/second.
func (Time) MarshalJSON ¶
func (*Time) UnmarshalJSON ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin implements an http.Server which can be used for operations and monitoring tools.
|
Package admin implements an http.Server which can be used for operations and monitoring tools. |
|
Package http implements a core suite of HTTP functions for use inside Moov.
|
Package http implements a core suite of HTTP functions for use inside Moov. |
|
bind
Package bind returns well known HTTP local bind addresses for Moov services.
|
Package bind returns well known HTTP local bind addresses for Moov services. |
|
lru
lru is a simple inmemory Recorder implementation.
|
lru is a simple inmemory Recorder implementation. |
Click to show internal directories.
Click to hide internal directories.