Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InverterTime ¶
InterterTime defines a time.Time value
func (*InverterTime) UnmarshalJSON ¶
func (m *InverterTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Marshaler interface At first it tries to use the RFC3339 format, but with the values returned from Kostal Inverter API it goes wrong, because the trailing "Z" is missing. This differs from the generated API documentation. So the fix is to add the "Z" character.
Click to show internal directories.
Click to hide internal directories.