Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDuration = errors.New("invalid duration")
View Source
var ErrInvalidURL = errors.New("invalid url")
View Source
var Meals = map[Meal]struct{}{ MealBreakfast: {}, MealLunch: {}, MealDinner: {}, MealSnack: {}, }
Functions ¶
This section is empty.
Types ¶
type Duration ¶
A Duration is a wrapper around time.Duration that provides JSON marshalling and unmarshalling.
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type URL ¶
A URL is a wrapper around url.URL that provides JSON marshalling and unmarshalling.
func (URL) MarshalJSON ¶
func (*URL) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.