MarshalJSON returns the JSON encoding of duration - the time elapsed since s.Val.
()
| 1200 | |
| 1201 | // MarshalJSON returns the JSON encoding of duration - the time elapsed since s.Val. |
| 1202 | func (s *SgwDurStat) MarshalJSON() ([]byte, error) { |
| 1203 | return []byte(s.String()), nil |
| 1204 | } |
| 1205 | |
| 1206 | // String returns the String representation of duration - the time elapsed since s.Val. |
| 1207 | func (s *SgwDurStat) String() string { |