type Matcher … func (m *Matcher) UnmarshalJSON(b []byte) error { … } // Validate returns true iff all fields of the matcher have valid values. func (m *Matcher) Validate() error { … } type Silence … // Validate returns true iff all fields of the silence have valid values. func (s *Silence) Validate() error { … }